PHP 클래스 PhpSandbox\Error

This class extends Exception to allow for catching PHPSandbox-specific exceptions.
저자: Elijah Horton ([email protected])
상속: extends Exception
파일 보기 프로젝트 열기: Corveda/PHPSandbox

보호된 프로퍼티들

프로퍼티 타입 설명
$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