[PHP] Including class of Exception in exception message

2005-04-09 Thread C Drozdowski
I'm using Exceptions and variously handling them in try..catch blocks or defaulting to my set_exception_handler handler. When I create an Exception I'd like to prepend the class of the Exception to the message. Can this be done with code or do I have to hard code the name of the Exception class

RE: [PHP] Including class of Exception in exception message

2005-04-09 Thread Jared Williams
I'm using Exceptions and variously handling them in try..catch blocks or defaulting to my set_exception_handler handler. When I create an Exception I'd like to prepend the class of the Exception to the message. Can this be done with code or do I have to hard code the name of the

Re: [PHP] Including class of Exception in exception message

2005-04-09 Thread Josip Dzolonga
On , 2005-04-09 at 11:27 -0400, C Drozdowski wrote: where CODE is some php code that refers to the class of the exception being thrown. Take a look at magic constants [ http://www.php.net/manual/en/language.constants.predefined.php ]. Hope this helps, Josip Dzolonga http://josip.dotgeek.org