It is best to follow standard programming practices and protect individual
parts of code where you see to be potential errors. As you said, use
try/catch blocks to catch the errors and perhaps throw a customized
exception or perform some other operations. Furthermore, if you are using
ColdFusion MX 7, you can use the onError method within the
Application.cfcfile to handle any errors that may come along that you
didn't catch (which
will happen at one time or another).

-Kyle Hayes

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:254981
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