PHP Class System\Error

Show file Open project: rwarasaurus/nano Class Usage Examples

Public Methods

Method Description
exception ( Exceptio\Exception $e ) Exception handler
log ( $e ) Exception logger
native ( $code, $message, $file, $line ) Error handler
register ( ) Register Exception handler
shutdown ( ) Shutdown handler
unregister ( ) Unregister Exception handler

Method Details

exception() public static method

Exception handler
public static exception ( Exceptio\Exception $e )
$e Exceptio\Exception

log() public static method

Log the exception depending on the application config
public static log ( $e )

native() public static method

This will catch the php native error and treat it as a exception which will provide a full back trace on all errors
public static native ( $code, $message, $file, $line )

register() public static method

Register Exception handler
public static register ( )

shutdown() public static method

This will catch errors that are generated at the shutdown level of execution
public static shutdown ( )

unregister() public static method

Unregister Exception handler
public static unregister ( )