PHP Class Bolt\Exception\LowlevelException

Inheritance: extends Exception
Exibir arquivo Open project: bolt/bolt Class Usage Examples

Public Properties

Property Type Description
$html
$info
$screen

Public Methods

Method Description
__construct ( string $message, integer $code = null, Exception $previous = null ) Print a 'low level' error page, and quit. The user has to fix something.
catchFatalErrors ( Silex\Application $app, boolean $flush = true ) Callback for register_shutdown_function() to handle fatal errors.
catchFatalErrorsEarly ( ) Catch and display errors that occur before the Application object has been instantiated.
nullHandler ( Exception $e ) Ignore exception handler pointed at by set_exception_handler().

Private Methods

Method Description
cleanHTML ( string $output ) : string Remove HTML elements from the error output.

Method Details

__construct() public method

Security caveat: the message is inserted into the page unescaped, so make sure that it contains valid HTML with proper encoding applied.
public __construct ( string $message, integer $code = null, Exception $previous = null )
$message string
$code integer
$previous Exception

catchFatalErrors() public static method

Callback for register_shutdown_function() to handle fatal errors.
public static catchFatalErrors ( Silex\Application $app, boolean $flush = true )
$app Silex\Application
$flush boolean

catchFatalErrorsEarly() public static method

If the error occurs later in the application life cycle, we flush this output in catchFatalErrors() which has access to the Application object.
public static catchFatalErrorsEarly ( )

nullHandler() public static method

Ignore exception handler pointed at by set_exception_handler().
public static nullHandler ( Exception $e )
$e Exception

Property Details

$html public_oe static_oe property

public static $html

$info public_oe static_oe property

public static $info

$screen public_oe static_oe property

public static $screen