![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||
set_exception_handlerDescriptionstring set_exception_handler ( callback exception_handler )Sets the default exception handler if an exception is not caught within a try/catch block. Execution will stop after the exception_handler is called. The exception_handler must be defined before calling set_exception_handler(). This handler function needs to accept one parameter, which will be the exception object that was thrown. Return ValuesReturns the name of the previously defined exception handler, or FALSE on error. If no previous handler was defined, an empty string is returned. See Alsorestore_exception_handler(), restore_error_handler(), error_reporting(), information about the callback type, and PHP 5 Exceptions. Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/. Please see full copyright text at http://www.php.net/manual/en/copyright.php Original version of the above documentation is available at http://www.php.net/manual/en/ |
|