Page 1 of 1

Managing errors

Posted: Thu Feb 22, 2007 4:33 am
by timbrown
Hi,

I am building an application and want a way to manage the errors that it produces. Something like when you get error number 1234 etc.

I am not referring to actual PHP generated errors, I mean notices that my application generates for example when someone tries to do something I dont like OR a function returns unexpected results.

Is there an accepted method of doing this when building applications?

Posted: Thu Feb 22, 2007 5:35 am
by Jenk
For php5 you can utilise exceptions, and create an exception handler.

Exceptions are pretty much standard behaviour amongst multiple languages.

Posted: Thu Feb 22, 2007 6:13 am
by timbrown
Jenk wrote:For php5 you can utilise exceptions, and create an exception handler.

Exceptions are pretty much standard behaviour amongst multiple languages.
That's just what Im after. Thanks. :)