PHP Class Bolt\Exception\LowlevelException

Inheritance: extends Exception
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Méthodes publiques

Свойство Type Description
$html
$info
$screen

Méthodes publiques

Méthode 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

Méthode Description
cleanHTML ( string $output ) : string Remove HTML elements from the error output.

Method Details

__construct() public méthode

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 méthode

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 méthode

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 méthode

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