There are a lot of error handling possibilties in CF.

try/catch is the first and some of the easiest ways if you want to make sure
that a certain event occurs and to track it.  You have the onError function
for application.cfc that can assist you in creating generic error handlers.
Also, you yet another layer that is the site wide error handler.  You need
to sit down and play with each type.  You can create custom error handlers
using cftry/catch, cfthrow and cfrethrow.

Teddy

On 10/2/06, Richard White <[EMAIL PROTECTED]> wrote:
>
> hi, i am new to building applications and would like to get some advice on
> handling errors.
>
> I am wondering whether it is good practise to either place error handlers
> such as try, cathes, where i think there may be possible errors, such as
> getting files that may not be available etc... or whether it is good
> practise to place error handlers all over the code just in case unexpected
> errors occur
>
> i am quite good at identifying where the errors may be and do as much as i
> can in my code to prevent errors from occuring.
>
> it is  mainly the standard error handlers that i am not sure what the best
> practise is, as i said the try catches etc..
>
> i would very much appreciate any advice
>
> thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254983
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to