05-12-2008, 09:20 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
Exactly! It is very useful especially when certain conditions may exist.
For instance, if you expect an error to occur out of a function (XML Parsing comes to mind and being fed bad data), or if an error could potentially occur, but you want it to fail silently and continue on IE database connections. Should a database connection occur and you supress it correctly, instead of getting the default could not connect message, you can make it all pretty and stuff with a custom error handler, or use the OR DIE() function... but thats another topic
|
|
|