Scott Barnes wrote:
...snip...8<...
How would one then trap that error, and halt the overall process then and
there, while returning an error safely back to the presentation layer
without causing errors within errors... i.e. if you have a method expecting
a "query" result, and you return nothing, then that cfcomponent will
generate an error? so it never freakin stops.

I guess, what's peoples input on error catching and control with Coldfusion
Components.
Never deal with the error in the CFC... ie. always trap the error and rethrow it or pass back an exception code. Your CFC should be self contained and not rely upon any output or any redirects.

-- geoff
http://www.daemon.com.au/


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to