PHP Class System\error

Show file Open project: anchorcms/anchor-cms

Public Methods

Method Description
exception ( $e ) Exception handler
log ( $e ) Exception logger
native ( $code, $message, $file, $line, $context ) Error handler
shutdown ( ) Shutdown handler

Method Details

exception() public static method

This will log the exception and output the exception properties formatted as html or a 500 response depending on your application config
public static exception ( $e )

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, $context )

shutdown() public static method

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