PHP Класс PhpSandbox\Error

This class extends Exception to allow for catching PHPSandbox-specific exceptions.
Автор: Elijah Horton ([email protected])
Наследование: extends Exception
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$data The data of the Error
$node The node of the Error

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

Метод Описание
__construct ( string $message = '', integer $code, PhpParser\Node $node = null, mixed $data = null, Exception $previous = null ) Constructs the Error
getData ( ) : mixed Returns data of the Error
getNode ( ) : PhpParser\Node | null Returns parser node of the Error

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

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

Constructs the Error
public __construct ( string $message = '', integer $code, PhpParser\Node $node = null, mixed $data = null, Exception $previous = null )
$message string The message to pass to the Error
$code integer The error code to pass to the Error
$node PhpParser\Node The parser node to pass to the Error
$data mixed The error data to pass to the Error
$previous Exception The previous exception to pass to the Error

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

Returns data of the Error
public getData ( ) : mixed
Результат mixed The data of the error to return

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

Returns parser node of the Error
public getNode ( ) : PhpParser\Node | null
Результат PhpParser\Node | null The parser node of the error to return

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

$data защищенное свойство

The data of the Error
protected $data

$node защищенное свойство

The node of the Error
protected $node