PhpSandbox\Error::__construct PHP Method

__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
    public function __construct($message = '', $code = 0, Node $node = null, $data = null, \Exception $previous = null)
    {
        $this->node = $node;
        $this->data = $data;
        parent::__construct($message, $code, $previous);
    }