PHP Класс Bolt\Exception\LowlevelException

Наследование: extends Exception
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$html
$info
$screen

Открытые методы

Метод Описание
__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().

Приватные методы

Метод Описание
cleanHTML ( string $output ) : string Remove HTML elements from the error output.

Описание методов

__construct() публичный Метод

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() публичный статический Метод

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

catchFatalErrorsEarly() публичный статический Метод

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() публичный статический Метод

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

Описание свойств

$html публичное статическое свойство

public static $html

$info публичное статическое свойство

public static $info

$screen публичное статическое свойство

public static $screen