Re: CF7 - Error Trapping CFCs

2009-06-01 Thread Dominic Watson

Using application.cfc, you can use the OnError method, ie.








2009/6/1 ColdFusion Developer :
>
> I have a web application utilizing CF7 and within the Application.cfc file,
> I have a function called onError to handle the error trapping.
>
> This works find for the simple errors but if an error occurs in a CFC, it is
> not trapped.
>
> I have the three error types specified as:
>
> 
>  
>  
>
> How can I trap CFC errors (other tran wrapping EACH cfc invoke call with a
> CFTR/CATCH routine?
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323021
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF7 - Error Trapping CFCs

2009-06-01 Thread ColdFusion Developer

*** Disregard ***

I tracked it down to being an issue within the error handler itself.

For some reason it does not like the statement:  ..
blah blah

It was barking that the variable "ERROR" does not exists, even though
(correct me if I am wrong) but would be a structure of the error data?




On Mon, Jun 1, 2009 at 7:43 AM, Raymond Camden  wrote:

>
> What does your onError look like?
>  ** Di
> On Mon, Jun 1, 2009 at 6:09 AM, ColdFusion Developer
>  wrote:
> >
> > I have a web application utilizing CF7 and within the Application.cfc
> file,
> > I have a function called onError to handle the error trapping.
> >
> > This works find for the simple errors but if an error occurs in a CFC, it
> is
> > not trapped.
> >
> > I have the three error types specified as:
> >
> > 
> >  
> >  
> >
> > How can I trap CFC errors (other tran wrapping EACH cfc invoke call with
> a
> > CFTR/CATCH routine?
> >
> >
> >
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323020
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF7 - Error Trapping CFCs

2009-06-01 Thread Raymond Camden

What does your onError look like?

On Mon, Jun 1, 2009 at 6:09 AM, ColdFusion Developer
 wrote:
>
> I have a web application utilizing CF7 and within the Application.cfc file,
> I have a function called onError to handle the error trapping.
>
> This works find for the simple errors but if an error occurs in a CFC, it is
> not trapped.
>
> I have the three error types specified as:
>
> 
>  
>  
>
> How can I trap CFC errors (other tran wrapping EACH cfc invoke call with a
> CFTR/CATCH routine?
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323019
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF7 - Error Trapping CFCs

2009-06-01 Thread ColdFusion Developer

I have a web application utilizing CF7 and within the Application.cfc file,
I have a function called onError to handle the error trapping.

This works find for the simple errors but if an error occurs in a CFC, it is
not trapped.

I have the three error types specified as:


 
 

How can I trap CFC errors (other tran wrapping EACH cfc invoke call with a
CFTR/CATCH routine?


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323018
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4