Re: [PHP] Setting try and catch to use my own error handler

2006-10-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-20 15:50:32 +0900: > set_error_handler(ErrorHandler::handleError()); > Inside my ErrorHandler, I have this: > public static function handleError($errno, $errstr, $errfile, $errline) > { > echo "Hey dude! Error! " . $errno . $errstr . $errfile . $errline ; > } > > Ho

Re: [PHP] Setting try and catch to use my own error handler

2006-10-19 Thread Paul Scott
On Fri, 2006-10-20 at 15:50 +0900, Dave M G wrote: > I have a system where the code parses the URL and creates objects based > on the classes named in the link. > > In order to prevent a user typing in a URL that contains an object that > doesn't exist, and getting an error, I'm trying to set u

[PHP] Setting try and catch to use my own error handler

2006-10-19 Thread Dave M G
PHP List, I have a system where the code parses the URL and creates objects based on the classes named in the link. In order to prevent a user typing in a URL that contains an object that doesn't exist, and getting an error, I'm trying to set up an error handler class, called ErrorHandler, t