PHP restore_exception_handler() Function
Complete PHP Error Reference
Definition and Usage
The restore_exception_handler() function restores the previous exception handler.
This function is used to restore the previous exception handler after changing
it with the set_exception_handler() function.
This function always returns TRUE.
Syntax
|
restore_exception_handler()
|
Tips and Notes
Tip: The previous exception handler could be the built in exception handler or
a user-defined function.
Example
<?php
restore_exception_handler();
throw new Exception('Uncaught Exception occured');
?>
|
The output of the code above should be something like this:
Fatal error: Uncaught exception 'Exception' with message
'Uncaught Exception occured' in C:\webfolder\test.php:4
Stack trace: #0 {main} thrown in C:\webfolder\test.php on line 4
|
Complete PHP Error Reference
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|