PHP Class PhpSandbox\Error

This class extends Exception to allow for catching PHPSandbox-specific exceptions.
Author: Elijah Horton ([email protected])
Inheritance: extends Exception
Show file Open project: Corveda/PHPSandbox

Protected Properties

Property Type Description
$data The data of the Error
$node The node of the Error

Public Methods

Method Description
__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

Method Details

__construct() public method

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() public method

Returns data of the Error
public getData ( ) : mixed
return mixed The data of the error to return

getNode() public method

Returns parser node of the Error
public getNode ( ) : PhpParser\Node | null
return PhpParser\Node | null The parser node of the error to return

Property Details

$data protected property

The data of the Error
protected $data

$node protected property

The node of the Error
protected $node