NYCPHP Meetup

NYPHP.org

[nycphp-talk] NEW PHundamentals Question - Error Handling

Tim Gales tgales at tgaconnect.com
Mon May 10 09:16:23 EDT 2004


> In trying to answer the big W you sometimes
> can find yourself sounding like a member on 
> a congressional investigation committee.
> Saying to yourself things like:
> "What did this routine know -- and when did 
> he know it".

So after performing the 'investigation' you 
determine the extent of criminal behavior 
(misdemeanor, felony, etc) -- if any 
criminal behavior exists.

Once you've determined how bad the behavior is, 
you can let your error handler 'fit the crime'.

(this is in response to: "What types of errors can 
be safely ignored, and which ones should be trapped 
by an error handler") 

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com

> > -----Original Message-----
> > From: talk-bounces at lists.nyphp.org 
> > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff Siegel - 
> > PHundamentals
> > Sent: Monday, May 10, 2004 7:31 AM
> > To: NYPHP Talk
> > Subject: [nycphp-talk] NEW PHundamentals Question - Error Handling
> > 
> > 
> > "Something can always go wrong in an application so it is essential 
> > that your application have an error handler. What types of 
> errors can 
> > be safely ignored, and which ones should be trapped by an error 
> > handler? What is the best way to handle those errors?"




More information about the talk mailing list