RE: cfthrow from onRequestStart / flashagteway

2006-06-27 Thread Andrew Stevens
Thanks for that. I had hoped I could throw the exception back to Flash like
it can be done from methods in other components :(

I'm trying to make use of onError but I'm not sure it fits. How does this
sound: I implemented onError, which now fires when I cfthrow from inside
onRequestStart. 
In onError I can't detect anything about the error I threw because the error
caught is the same Event Handler Exception.

I can cfthrow from onError which will return an error to the Flash client,
but I want to be able to throw specific errors like 'not logged in' (which
is enforced in onRequestStart).

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 27 June 2006 2:22 AM
To: CF-Talk
Subject: Re: cfthrow from onRequestStart / flashagteway 

A CFThrow tosses an error up to the parent of a template. An application.cfc
in some ways acts as the parent of the template but if you do a CFThrow
inside of it when using a gateway, there's nowhere for the error to go other
than the global error handler. Better to call the onError method within the
application.cfc than use a CFThrow. 

Hi would anyone know why I can’t use CFTHROW from within Application CFC
onRequestStart()?

 

I am calling a CFC from Flash via the flashgateway.

 

If I cfthrow I get “06/26 23:07:37 Error [jrpp-3] - Event Handler
Exception.” in Coldfusion.

 

I’m stumped.

 

Thanks.

 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 25/06/2006



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244852
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfthrow from onRequestStart / flashagteway

2006-06-26 Thread Andrew Stevens
Hi would anyone know why I can’t use CFTHROW from within Application CFC
onRequestStart()?

 

I am calling a CFC from Flash via the flashgateway.

 

If I cfthrow I get “06/26 23:07:37 Error [jrpp-3] - Event Handler
Exception.” in Coldfusion.

 

I’m stumped.

 

Thanks.

 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 25/06/2006
 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244774
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfthrow from onRequestStart / flashagteway

2006-06-26 Thread Michael Dinowitz
A CFThrow tosses an error up to the parent of a template. An application.cfc in 
some ways acts as the parent of the template but if you do a CFThrow inside of 
it when using a gateway, there's nowhere for the error to go other than the 
global error handler. Better to call the onError method within the 
application.cfc than use a CFThrow. 

Hi would anyone know why I can’t use CFTHROW from within Application CFC
onRequestStart()?

 

I am calling a CFC from Flash via the flashgateway.

 

If I cfthrow I get “06/26 23:07:37 Error [jrpp-3] - Event Handler
Exception.” in Coldfusion.

 

I’m stumped.

 

Thanks.

 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 25/06/2006

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244783
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54