\PHPSandboxError

Error class for PHP Sandboxes.

This class extends Exception to allow for catching PHPSandbox-specific exceptions.

Summary

Methods
Properties
Constants
__construct()
getData()
getNode()
No public properties found
PARSER_ERROR
ESCAPE_ERROR
HALT_ERROR
CAST_ERROR
CLOSURE_ERROR
BYREF_ERROR
GENERATOR_ERROR
GLOBALS_ERROR
DYNAMIC_VAR_ERROR
STATIC_VAR_ERROR
ERROR_SUPPRESS_ERROR
BACKTICKS_ERROR
IMPORT_ERROR
INCLUDE_ERROR
DYNAMIC_STATIC_VAR_ERROR
DYNAMIC_CONST_ERROR
DYNAMIC_CLASS_ERROR
SANDBOX_ACCESS_ERROR
GLOBAL_CONST_ERROR
CREATE_OBJECT_ERROR
VALID_FUNC_ERROR
VALID_KEYWORD_ERROR
VALID_CONST_ERROR
VALID_VAR_ERROR
VALID_GLOBAL_ERROR
VALID_SUPERGLOBAL_ERROR
VALID_MAGIC_CONST_ERROR
VALID_CLASS_ERROR
VALID_TYPE_ERROR
VALID_INTERFACE_ERROR
VALID_TRAIT_ERROR
VALID_NAMESPACE_ERROR
VALID_ALIAS_ERROR
VALID_OPERATOR_ERROR
VALID_PRIMITIVE_ERROR
DEFINE_FUNC_ERROR
DEFINE_KEYWORD_ERROR
DEFINE_CONST_ERROR
DEFINE_VAR_ERROR
DEFINE_GLOBAL_ERROR
DEFINE_SUPERGLOBAL_ERROR
DEFINE_MAGIC_CONST_ERROR
DEFINE_CLASS_ERROR
DEFINE_TYPE_ERROR
DEFINE_INTERFACE_ERROR
DEFINE_TRAIT_ERROR
DEFINE_NAMESPACE_ERROR
DEFINE_ALIAS_ERROR
DEFINE_OPERATOR_ERROR
DEFINE_PRIMITIVE_ERROR
WHITELIST_FUNC_ERROR
WHITELIST_KEYWORD_ERROR
WHITELIST_CONST_ERROR
WHITELIST_VAR_ERROR
WHITELIST_GLOBAL_ERROR
WHITELIST_SUPERGLOBAL_ERROR
WHITELIST_MAGIC_CONST_ERROR
WHITELIST_CLASS_ERROR
WHITELIST_TYPE_ERROR
WHITELIST_INTERFACE_ERROR
WHITELIST_TRAIT_ERROR
WHITELIST_NAMESPACE_ERROR
WHITELIST_ALIAS_ERROR
WHITELIST_OPERATOR_ERROR
WHITELIST_PRIMITIVE_ERROR
BLACKLIST_FUNC_ERROR
BLACKLIST_KEYWORD_ERROR
BLACKLIST_CONST_ERROR
BLACKLIST_VAR_ERROR
BLACKLIST_GLOBAL_ERROR
BLACKLIST_SUPERGLOBAL_ERROR
BLACKLIST_MAGIC_CONST_ERROR
BLACKLIST_CLASS_ERROR
BLACKLIST_TYPE_ERROR
BLACKLIST_INTERFACE_ERROR
BLACKLIST_TRAIT_ERROR
BLACKLIST_NAMESPACE_ERROR
BLACKLIST_ALIAS_ERROR
BLACKLIST_OPERATOR_ERROR
BLACKLIST_PRIMITIVE_ERROR
No protected methods found
$node
$data
N/A
No private methods found
No private properties found
N/A

Constants

PARSER_ERROR

PARSER_ERROR

ESCAPE_ERROR

ESCAPE_ERROR

HALT_ERROR

HALT_ERROR

CAST_ERROR

CAST_ERROR

CLOSURE_ERROR

CLOSURE_ERROR

BYREF_ERROR

BYREF_ERROR

GENERATOR_ERROR

GENERATOR_ERROR

GLOBALS_ERROR

GLOBALS_ERROR

DYNAMIC_VAR_ERROR

DYNAMIC_VAR_ERROR

STATIC_VAR_ERROR

STATIC_VAR_ERROR

ERROR_SUPPRESS_ERROR

ERROR_SUPPRESS_ERROR

BACKTICKS_ERROR

BACKTICKS_ERROR

IMPORT_ERROR

IMPORT_ERROR

INCLUDE_ERROR

INCLUDE_ERROR

DYNAMIC_STATIC_VAR_ERROR

DYNAMIC_STATIC_VAR_ERROR

DYNAMIC_CONST_ERROR

DYNAMIC_CONST_ERROR

DYNAMIC_CLASS_ERROR

DYNAMIC_CLASS_ERROR

SANDBOX_ACCESS_ERROR

SANDBOX_ACCESS_ERROR

GLOBAL_CONST_ERROR

GLOBAL_CONST_ERROR

CREATE_OBJECT_ERROR

CREATE_OBJECT_ERROR

VALID_FUNC_ERROR

VALID_FUNC_ERROR

VALID_KEYWORD_ERROR

VALID_KEYWORD_ERROR

VALID_CONST_ERROR

VALID_CONST_ERROR

VALID_VAR_ERROR

VALID_VAR_ERROR

VALID_GLOBAL_ERROR

VALID_GLOBAL_ERROR

VALID_SUPERGLOBAL_ERROR

VALID_SUPERGLOBAL_ERROR

VALID_MAGIC_CONST_ERROR

VALID_MAGIC_CONST_ERROR

VALID_CLASS_ERROR

VALID_CLASS_ERROR

VALID_TYPE_ERROR

VALID_TYPE_ERROR

VALID_INTERFACE_ERROR

VALID_INTERFACE_ERROR

VALID_TRAIT_ERROR

VALID_TRAIT_ERROR

VALID_NAMESPACE_ERROR

VALID_NAMESPACE_ERROR

VALID_ALIAS_ERROR

VALID_ALIAS_ERROR

VALID_OPERATOR_ERROR

VALID_OPERATOR_ERROR

VALID_PRIMITIVE_ERROR

VALID_PRIMITIVE_ERROR

DEFINE_FUNC_ERROR

DEFINE_FUNC_ERROR

DEFINE_KEYWORD_ERROR

DEFINE_KEYWORD_ERROR

DEFINE_CONST_ERROR

DEFINE_CONST_ERROR

DEFINE_VAR_ERROR

DEFINE_VAR_ERROR

DEFINE_GLOBAL_ERROR

DEFINE_GLOBAL_ERROR

DEFINE_SUPERGLOBAL_ERROR

DEFINE_SUPERGLOBAL_ERROR

DEFINE_MAGIC_CONST_ERROR

DEFINE_MAGIC_CONST_ERROR

DEFINE_CLASS_ERROR

DEFINE_CLASS_ERROR

DEFINE_TYPE_ERROR

DEFINE_TYPE_ERROR

DEFINE_INTERFACE_ERROR

DEFINE_INTERFACE_ERROR

DEFINE_TRAIT_ERROR

DEFINE_TRAIT_ERROR

DEFINE_NAMESPACE_ERROR

DEFINE_NAMESPACE_ERROR

DEFINE_ALIAS_ERROR

DEFINE_ALIAS_ERROR

DEFINE_OPERATOR_ERROR

DEFINE_OPERATOR_ERROR

DEFINE_PRIMITIVE_ERROR

DEFINE_PRIMITIVE_ERROR

WHITELIST_FUNC_ERROR

WHITELIST_FUNC_ERROR

WHITELIST_KEYWORD_ERROR

WHITELIST_KEYWORD_ERROR

WHITELIST_CONST_ERROR

WHITELIST_CONST_ERROR

WHITELIST_VAR_ERROR

WHITELIST_VAR_ERROR

WHITELIST_GLOBAL_ERROR

WHITELIST_GLOBAL_ERROR

WHITELIST_SUPERGLOBAL_ERROR

WHITELIST_SUPERGLOBAL_ERROR

WHITELIST_MAGIC_CONST_ERROR

WHITELIST_MAGIC_CONST_ERROR

WHITELIST_CLASS_ERROR

WHITELIST_CLASS_ERROR

WHITELIST_TYPE_ERROR

WHITELIST_TYPE_ERROR

WHITELIST_INTERFACE_ERROR

WHITELIST_INTERFACE_ERROR

WHITELIST_TRAIT_ERROR

WHITELIST_TRAIT_ERROR

WHITELIST_NAMESPACE_ERROR

WHITELIST_NAMESPACE_ERROR

WHITELIST_ALIAS_ERROR

WHITELIST_ALIAS_ERROR

WHITELIST_OPERATOR_ERROR

WHITELIST_OPERATOR_ERROR

WHITELIST_PRIMITIVE_ERROR

WHITELIST_PRIMITIVE_ERROR

BLACKLIST_FUNC_ERROR

BLACKLIST_FUNC_ERROR

BLACKLIST_KEYWORD_ERROR

BLACKLIST_KEYWORD_ERROR

BLACKLIST_CONST_ERROR

BLACKLIST_CONST_ERROR

BLACKLIST_VAR_ERROR

BLACKLIST_VAR_ERROR

BLACKLIST_GLOBAL_ERROR

BLACKLIST_GLOBAL_ERROR

BLACKLIST_SUPERGLOBAL_ERROR

BLACKLIST_SUPERGLOBAL_ERROR

BLACKLIST_MAGIC_CONST_ERROR

BLACKLIST_MAGIC_CONST_ERROR

BLACKLIST_CLASS_ERROR

BLACKLIST_CLASS_ERROR

BLACKLIST_TYPE_ERROR

BLACKLIST_TYPE_ERROR

BLACKLIST_INTERFACE_ERROR

BLACKLIST_INTERFACE_ERROR

BLACKLIST_TRAIT_ERROR

BLACKLIST_TRAIT_ERROR

BLACKLIST_NAMESPACE_ERROR

BLACKLIST_NAMESPACE_ERROR

BLACKLIST_ALIAS_ERROR

BLACKLIST_ALIAS_ERROR

BLACKLIST_OPERATOR_ERROR

BLACKLIST_OPERATOR_ERROR

BLACKLIST_PRIMITIVE_ERROR

BLACKLIST_PRIMITIVE_ERROR

Properties

$node

$node : \PhpParser\Node|null

Type

\PhpParser\Node|null — The node of the Error

$data

$data : mixed

Type

mixed — The data of the Error

Methods

__construct()

__construct(string  $message = '', integer  $code, \PhpParser\Node  $node = null, mixed  $data = null, \Exception  $previous = null) 

Constructs the Error

Parameters

string $message

The message to pass to the Error

integer $code

The error code to pass to the Error

\PhpParser\Node $node

The parser node to pass to the Error

mixed $data

The error data to pass to the Error

\Exception $previous

The previous exception to pass to the Error

getData()

getData() : mixed

Returns data of the Error

Returns

mixed —

The data of the error to return

getNode()

getNode() : \PhpParser\Node|null

Returns parser node of the Error

Returns

\PhpParser\Node|null —

The parser node of the error to return