Error
extends Exception
in package
Error class for PHP Sandboxes.
This class extends Exception to allow for catching PHPSandbox-specific exceptions.
Tags
Table of Contents
- BACKTICKS_ERROR = 12
- BLACKLIST_ALIAS_ERROR = 412
- BLACKLIST_CLASS_ERROR = 407
- BLACKLIST_CONST_ERROR = 402
- BLACKLIST_FUNC_ERROR = 400
- BLACKLIST_GLOBAL_ERROR = 404
- BLACKLIST_INTERFACE_ERROR = 409
- BLACKLIST_KEYWORD_ERROR = 401
- BLACKLIST_MAGIC_CONST_ERROR = 406
- BLACKLIST_NAMESPACE_ERROR = 411
- BLACKLIST_OPERATOR_ERROR = 413
- BLACKLIST_PRIMITIVE_ERROR = 414
- BLACKLIST_SUPERGLOBAL_ERROR = 405
- BLACKLIST_TRAIT_ERROR = 410
- BLACKLIST_TYPE_ERROR = 408
- BLACKLIST_VAR_ERROR = 403
- BYREF_ERROR = 6
- CAST_ERROR = 4
- CLOSURE_ERROR = 5
- CREATE_OBJECT_ERROR = 32
- DEFINE_ALIAS_ERROR = 212
- DEFINE_CLASS_ERROR = 207
- DEFINE_CONST_ERROR = 202
- DEFINE_FUNC_ERROR = 200
- DEFINE_GLOBAL_ERROR = 204
- DEFINE_INTERFACE_ERROR = 209
- DEFINE_KEYWORD_ERROR = 201
- DEFINE_MAGIC_CONST_ERROR = 206
- DEFINE_NAMESPACE_ERROR = 211
- DEFINE_OPERATOR_ERROR = 213
- DEFINE_PRIMITIVE_ERROR = 214
- DEFINE_SUPERGLOBAL_ERROR = 205
- DEFINE_TRAIT_ERROR = 210
- DEFINE_TYPE_ERROR = 208
- DEFINE_VAR_ERROR = 203
- DYNAMIC_CLASS_ERROR = 22
- DYNAMIC_CONST_ERROR = 21
- DYNAMIC_STATIC_VAR_ERROR = 20
- DYNAMIC_VAR_ERROR = 9
- ERROR_SUPPRESS_ERROR = 11
- ESCAPE_ERROR = 2
- GENERATOR_ERROR = 7
- GLOBAL_CONST_ERROR = 31
- GLOBALS_ERROR = 8
- HALT_ERROR = 3
- IMPORT_ERROR = 13
- INCLUDE_ERROR = 14
- PARSER_ERROR = 1
- SANDBOX_ACCESS_ERROR = 30
- STATIC_VAR_ERROR = 10
- VALID_ALIAS_ERROR = 112
- VALID_CLASS_ERROR = 107
- VALID_CONST_ERROR = 102
- VALID_FUNC_ERROR = 100
- VALID_GLOBAL_ERROR = 104
- VALID_INTERFACE_ERROR = 109
- VALID_KEYWORD_ERROR = 101
- VALID_MAGIC_CONST_ERROR = 106
- VALID_NAMESPACE_ERROR = 111
- VALID_OPERATOR_ERROR = 113
- VALID_PRIMITIVE_ERROR = 114
- VALID_SUPERGLOBAL_ERROR = 105
- VALID_TRAIT_ERROR = 110
- VALID_TYPE_ERROR = 108
- VALID_VAR_ERROR = 103
- WHITELIST_ALIAS_ERROR = 312
- WHITELIST_CLASS_ERROR = 307
- WHITELIST_CONST_ERROR = 302
- WHITELIST_FUNC_ERROR = 300
- WHITELIST_GLOBAL_ERROR = 304
- WHITELIST_INTERFACE_ERROR = 309
- WHITELIST_KEYWORD_ERROR = 301
- WHITELIST_MAGIC_CONST_ERROR = 306
- WHITELIST_NAMESPACE_ERROR = 311
- WHITELIST_OPERATOR_ERROR = 313
- WHITELIST_PRIMITIVE_ERROR = 314
- WHITELIST_SUPERGLOBAL_ERROR = 305
- WHITELIST_TRAIT_ERROR = 310
- WHITELIST_TYPE_ERROR = 308
- WHITELIST_VAR_ERROR = 303
- $data : mixed
- $node : Node|null
- __construct() : mixed
- Constructs the Error
- getData() : mixed
- Returns data of the Error
- getNode() : Node|null
- Returns parser node of the Error
Constants
BACKTICKS_ERROR
public
mixed
BACKTICKS_ERROR
= 12
BLACKLIST_ALIAS_ERROR
public
mixed
BLACKLIST_ALIAS_ERROR
= 412
BLACKLIST_CLASS_ERROR
public
mixed
BLACKLIST_CLASS_ERROR
= 407
BLACKLIST_CONST_ERROR
public
mixed
BLACKLIST_CONST_ERROR
= 402
BLACKLIST_FUNC_ERROR
public
mixed
BLACKLIST_FUNC_ERROR
= 400
BLACKLIST_GLOBAL_ERROR
public
mixed
BLACKLIST_GLOBAL_ERROR
= 404
BLACKLIST_INTERFACE_ERROR
public
mixed
BLACKLIST_INTERFACE_ERROR
= 409
BLACKLIST_KEYWORD_ERROR
public
mixed
BLACKLIST_KEYWORD_ERROR
= 401
BLACKLIST_MAGIC_CONST_ERROR
public
mixed
BLACKLIST_MAGIC_CONST_ERROR
= 406
BLACKLIST_NAMESPACE_ERROR
public
mixed
BLACKLIST_NAMESPACE_ERROR
= 411
BLACKLIST_OPERATOR_ERROR
public
mixed
BLACKLIST_OPERATOR_ERROR
= 413
BLACKLIST_PRIMITIVE_ERROR
public
mixed
BLACKLIST_PRIMITIVE_ERROR
= 414
BLACKLIST_SUPERGLOBAL_ERROR
public
mixed
BLACKLIST_SUPERGLOBAL_ERROR
= 405
BLACKLIST_TRAIT_ERROR
public
mixed
BLACKLIST_TRAIT_ERROR
= 410
BLACKLIST_TYPE_ERROR
public
mixed
BLACKLIST_TYPE_ERROR
= 408
BLACKLIST_VAR_ERROR
public
mixed
BLACKLIST_VAR_ERROR
= 403
BYREF_ERROR
public
mixed
BYREF_ERROR
= 6
CAST_ERROR
public
mixed
CAST_ERROR
= 4
CLOSURE_ERROR
public
mixed
CLOSURE_ERROR
= 5
CREATE_OBJECT_ERROR
public
mixed
CREATE_OBJECT_ERROR
= 32
DEFINE_ALIAS_ERROR
public
mixed
DEFINE_ALIAS_ERROR
= 212
DEFINE_CLASS_ERROR
public
mixed
DEFINE_CLASS_ERROR
= 207
DEFINE_CONST_ERROR
public
mixed
DEFINE_CONST_ERROR
= 202
DEFINE_FUNC_ERROR
public
mixed
DEFINE_FUNC_ERROR
= 200
DEFINE_GLOBAL_ERROR
public
mixed
DEFINE_GLOBAL_ERROR
= 204
DEFINE_INTERFACE_ERROR
public
mixed
DEFINE_INTERFACE_ERROR
= 209
DEFINE_KEYWORD_ERROR
public
mixed
DEFINE_KEYWORD_ERROR
= 201
DEFINE_MAGIC_CONST_ERROR
public
mixed
DEFINE_MAGIC_CONST_ERROR
= 206
DEFINE_NAMESPACE_ERROR
public
mixed
DEFINE_NAMESPACE_ERROR
= 211
DEFINE_OPERATOR_ERROR
public
mixed
DEFINE_OPERATOR_ERROR
= 213
DEFINE_PRIMITIVE_ERROR
public
mixed
DEFINE_PRIMITIVE_ERROR
= 214
DEFINE_SUPERGLOBAL_ERROR
public
mixed
DEFINE_SUPERGLOBAL_ERROR
= 205
DEFINE_TRAIT_ERROR
public
mixed
DEFINE_TRAIT_ERROR
= 210
DEFINE_TYPE_ERROR
public
mixed
DEFINE_TYPE_ERROR
= 208
DEFINE_VAR_ERROR
public
mixed
DEFINE_VAR_ERROR
= 203
DYNAMIC_CLASS_ERROR
public
mixed
DYNAMIC_CLASS_ERROR
= 22
DYNAMIC_CONST_ERROR
public
mixed
DYNAMIC_CONST_ERROR
= 21
DYNAMIC_STATIC_VAR_ERROR
public
mixed
DYNAMIC_STATIC_VAR_ERROR
= 20
DYNAMIC_VAR_ERROR
public
mixed
DYNAMIC_VAR_ERROR
= 9
ERROR_SUPPRESS_ERROR
public
mixed
ERROR_SUPPRESS_ERROR
= 11
ESCAPE_ERROR
public
mixed
ESCAPE_ERROR
= 2
GENERATOR_ERROR
public
mixed
GENERATOR_ERROR
= 7
GLOBAL_CONST_ERROR
public
mixed
GLOBAL_CONST_ERROR
= 31
GLOBALS_ERROR
public
mixed
GLOBALS_ERROR
= 8
HALT_ERROR
public
mixed
HALT_ERROR
= 3
IMPORT_ERROR
public
mixed
IMPORT_ERROR
= 13
INCLUDE_ERROR
public
mixed
INCLUDE_ERROR
= 14
PARSER_ERROR
public
mixed
PARSER_ERROR
= 1
SANDBOX_ACCESS_ERROR
public
mixed
SANDBOX_ACCESS_ERROR
= 30
STATIC_VAR_ERROR
public
mixed
STATIC_VAR_ERROR
= 10
VALID_ALIAS_ERROR
public
mixed
VALID_ALIAS_ERROR
= 112
VALID_CLASS_ERROR
public
mixed
VALID_CLASS_ERROR
= 107
VALID_CONST_ERROR
public
mixed
VALID_CONST_ERROR
= 102
VALID_FUNC_ERROR
public
mixed
VALID_FUNC_ERROR
= 100
VALID_GLOBAL_ERROR
public
mixed
VALID_GLOBAL_ERROR
= 104
VALID_INTERFACE_ERROR
public
mixed
VALID_INTERFACE_ERROR
= 109
VALID_KEYWORD_ERROR
public
mixed
VALID_KEYWORD_ERROR
= 101
VALID_MAGIC_CONST_ERROR
public
mixed
VALID_MAGIC_CONST_ERROR
= 106
VALID_NAMESPACE_ERROR
public
mixed
VALID_NAMESPACE_ERROR
= 111
VALID_OPERATOR_ERROR
public
mixed
VALID_OPERATOR_ERROR
= 113
VALID_PRIMITIVE_ERROR
public
mixed
VALID_PRIMITIVE_ERROR
= 114
VALID_SUPERGLOBAL_ERROR
public
mixed
VALID_SUPERGLOBAL_ERROR
= 105
VALID_TRAIT_ERROR
public
mixed
VALID_TRAIT_ERROR
= 110
VALID_TYPE_ERROR
public
mixed
VALID_TYPE_ERROR
= 108
VALID_VAR_ERROR
public
mixed
VALID_VAR_ERROR
= 103
WHITELIST_ALIAS_ERROR
public
mixed
WHITELIST_ALIAS_ERROR
= 312
WHITELIST_CLASS_ERROR
public
mixed
WHITELIST_CLASS_ERROR
= 307
WHITELIST_CONST_ERROR
public
mixed
WHITELIST_CONST_ERROR
= 302
WHITELIST_FUNC_ERROR
public
mixed
WHITELIST_FUNC_ERROR
= 300
WHITELIST_GLOBAL_ERROR
public
mixed
WHITELIST_GLOBAL_ERROR
= 304
WHITELIST_INTERFACE_ERROR
public
mixed
WHITELIST_INTERFACE_ERROR
= 309
WHITELIST_KEYWORD_ERROR
public
mixed
WHITELIST_KEYWORD_ERROR
= 301
WHITELIST_MAGIC_CONST_ERROR
public
mixed
WHITELIST_MAGIC_CONST_ERROR
= 306
WHITELIST_NAMESPACE_ERROR
public
mixed
WHITELIST_NAMESPACE_ERROR
= 311
WHITELIST_OPERATOR_ERROR
public
mixed
WHITELIST_OPERATOR_ERROR
= 313
WHITELIST_PRIMITIVE_ERROR
public
mixed
WHITELIST_PRIMITIVE_ERROR
= 314
WHITELIST_SUPERGLOBAL_ERROR
public
mixed
WHITELIST_SUPERGLOBAL_ERROR
= 305
WHITELIST_TRAIT_ERROR
public
mixed
WHITELIST_TRAIT_ERROR
= 310
WHITELIST_TYPE_ERROR
public
mixed
WHITELIST_TYPE_ERROR
= 308
WHITELIST_VAR_ERROR
public
mixed
WHITELIST_VAR_ERROR
= 303
Properties
$data
protected
mixed
$data
The data of the Error
$node
protected
Node|null
$node
The node of the Error
Methods
__construct()
Constructs the Error
public
__construct([string $message = '' ], int $code[, Node|null $node = null ][, mixed $data = null ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = ''
-
The message to pass to the Error
- $code : int
-
The error code to pass to the Error
- $node : Node|null = null
-
The parser node to pass to the Error
- $data : mixed = null
-
The error data to pass to the Error
- $previous : Throwable|null = null
-
The previous exception to pass to the Error
Return values
mixed —getData()
Returns data of the Error
public
getData() : mixed
Tags
Return values
mixed —The data of the error to return
getNode()
Returns parser node of the Error
public
getNode() : Node|null
Tags
Return values
Node|null —The parser node of the error to return