Menu

## Error extends Exception
in package

Error.php : 21

Error class for PHP Sandboxes.

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

##### Tags

namespace

  PHPSandbox

author

  Elijah Horton elijah@corveda.com

version
  3.0

### 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

Error.php : 35
`public mixed BACKTICKS_ERROR = 12`

#### BLACKLIST_ALIAS_ERROR

Error.php : 106
`public mixed BLACKLIST_ALIAS_ERROR = 412`

#### BLACKLIST_CLASS_ERROR

Error.php : 101
`public mixed BLACKLIST_CLASS_ERROR = 407`

#### BLACKLIST_CONST_ERROR

Error.php : 96
`public mixed BLACKLIST_CONST_ERROR = 402`

#### BLACKLIST_FUNC_ERROR

Error.php : 94
`public mixed BLACKLIST_FUNC_ERROR = 400`

#### BLACKLIST_GLOBAL_ERROR

Error.php : 98
`public mixed BLACKLIST_GLOBAL_ERROR = 404`

#### BLACKLIST_INTERFACE_ERROR

Error.php : 103
`public mixed BLACKLIST_INTERFACE_ERROR = 409`

#### BLACKLIST_KEYWORD_ERROR

Error.php : 95
`public mixed BLACKLIST_KEYWORD_ERROR = 401`

#### BLACKLIST_MAGIC_CONST_ERROR

Error.php : 100
`public mixed BLACKLIST_MAGIC_CONST_ERROR = 406`

#### BLACKLIST_NAMESPACE_ERROR

Error.php : 105
`public mixed BLACKLIST_NAMESPACE_ERROR = 411`

#### BLACKLIST_OPERATOR_ERROR

Error.php : 107
`public mixed BLACKLIST_OPERATOR_ERROR = 413`

#### BLACKLIST_PRIMITIVE_ERROR

Error.php : 108
`public mixed BLACKLIST_PRIMITIVE_ERROR = 414`

#### BLACKLIST_SUPERGLOBAL_ERROR

Error.php : 99
`public mixed BLACKLIST_SUPERGLOBAL_ERROR = 405`

#### BLACKLIST_TRAIT_ERROR

Error.php : 104
`public mixed BLACKLIST_TRAIT_ERROR = 410`

#### BLACKLIST_TYPE_ERROR

Error.php : 102
`public mixed BLACKLIST_TYPE_ERROR = 408`

#### BLACKLIST_VAR_ERROR

Error.php : 97
`public mixed BLACKLIST_VAR_ERROR = 403`

#### BYREF_ERROR

Error.php : 29
`public mixed BYREF_ERROR = 6`

#### CAST_ERROR

Error.php : 27
`public mixed CAST_ERROR = 4`

#### CLOSURE_ERROR

Error.php : 28
`public mixed CLOSURE_ERROR = 5`

#### CREATE_OBJECT_ERROR

Error.php : 44
`public mixed CREATE_OBJECT_ERROR = 32`

#### DEFINE_ALIAS_ERROR

Error.php : 74
`public mixed DEFINE_ALIAS_ERROR = 212`

#### DEFINE_CLASS_ERROR

Error.php : 69
`public mixed DEFINE_CLASS_ERROR = 207`

#### DEFINE_CONST_ERROR

Error.php : 64
`public mixed DEFINE_CONST_ERROR = 202`

#### DEFINE_FUNC_ERROR

Error.php : 62
`public mixed DEFINE_FUNC_ERROR = 200`

#### DEFINE_GLOBAL_ERROR

Error.php : 66
`public mixed DEFINE_GLOBAL_ERROR = 204`

#### DEFINE_INTERFACE_ERROR

Error.php : 71
`public mixed DEFINE_INTERFACE_ERROR = 209`

#### DEFINE_KEYWORD_ERROR

Error.php : 63
`public mixed DEFINE_KEYWORD_ERROR = 201`

#### DEFINE_MAGIC_CONST_ERROR

Error.php : 68
`public mixed DEFINE_MAGIC_CONST_ERROR = 206`

#### DEFINE_NAMESPACE_ERROR

Error.php : 73
`public mixed DEFINE_NAMESPACE_ERROR = 211`

#### DEFINE_OPERATOR_ERROR

Error.php : 75
`public mixed DEFINE_OPERATOR_ERROR = 213`

#### DEFINE_PRIMITIVE_ERROR

Error.php : 76
`public mixed DEFINE_PRIMITIVE_ERROR = 214`

#### DEFINE_SUPERGLOBAL_ERROR

Error.php : 67
`public mixed DEFINE_SUPERGLOBAL_ERROR = 205`

#### DEFINE_TRAIT_ERROR

Error.php : 72
`public mixed DEFINE_TRAIT_ERROR = 210`

#### DEFINE_TYPE_ERROR

Error.php : 70
`public mixed DEFINE_TYPE_ERROR = 208`

#### DEFINE_VAR_ERROR

Error.php : 65
`public mixed DEFINE_VAR_ERROR = 203`

#### DYNAMIC_CLASS_ERROR

Error.php : 41
`public mixed DYNAMIC_CLASS_ERROR = 22`

#### DYNAMIC_CONST_ERROR

Error.php : 40
`public mixed DYNAMIC_CONST_ERROR = 21`

#### DYNAMIC_STATIC_VAR_ERROR

Error.php : 39
`public mixed DYNAMIC_STATIC_VAR_ERROR = 20`

#### DYNAMIC_VAR_ERROR

Error.php : 32
`public mixed DYNAMIC_VAR_ERROR = 9`

#### ERROR_SUPPRESS_ERROR

Error.php : 34
`public mixed ERROR_SUPPRESS_ERROR = 11`

#### ESCAPE_ERROR

Error.php : 25
`public mixed ESCAPE_ERROR = 2`

#### GENERATOR_ERROR

Error.php : 30
`public mixed GENERATOR_ERROR = 7`

#### GLOBAL_CONST_ERROR

Error.php : 43
`public mixed GLOBAL_CONST_ERROR = 31`

#### GLOBALS_ERROR

Error.php : 31
`public mixed GLOBALS_ERROR = 8`

#### HALT_ERROR

Error.php : 26
`public mixed HALT_ERROR = 3`

#### IMPORT_ERROR

Error.php : 36
`public mixed IMPORT_ERROR = 13`

#### INCLUDE_ERROR

Error.php : 37
`public mixed INCLUDE_ERROR = 14`

#### PARSER_ERROR

Error.php : 24
`public mixed PARSER_ERROR = 1`

#### SANDBOX_ACCESS_ERROR

Error.php : 42
`public mixed SANDBOX_ACCESS_ERROR = 30`

#### STATIC_VAR_ERROR

Error.php : 33
`public mixed STATIC_VAR_ERROR = 10`

#### VALID_ALIAS_ERROR

Error.php : 58
`public mixed VALID_ALIAS_ERROR = 112`

#### VALID_CLASS_ERROR

Error.php : 53
`public mixed VALID_CLASS_ERROR = 107`

#### VALID_CONST_ERROR

Error.php : 48
`public mixed VALID_CONST_ERROR = 102`

#### VALID_FUNC_ERROR

Error.php : 46
`public mixed VALID_FUNC_ERROR = 100`

#### VALID_GLOBAL_ERROR

Error.php : 50
`public mixed VALID_GLOBAL_ERROR = 104`

#### VALID_INTERFACE_ERROR

Error.php : 55
`public mixed VALID_INTERFACE_ERROR = 109`

#### VALID_KEYWORD_ERROR

Error.php : 47
`public mixed VALID_KEYWORD_ERROR = 101`

#### VALID_MAGIC_CONST_ERROR

Error.php : 52
`public mixed VALID_MAGIC_CONST_ERROR = 106`

#### VALID_NAMESPACE_ERROR

Error.php : 57
`public mixed VALID_NAMESPACE_ERROR = 111`

#### VALID_OPERATOR_ERROR

Error.php : 59
`public mixed VALID_OPERATOR_ERROR = 113`

#### VALID_PRIMITIVE_ERROR

Error.php : 60
`public mixed VALID_PRIMITIVE_ERROR = 114`

#### VALID_SUPERGLOBAL_ERROR

Error.php : 51
`public mixed VALID_SUPERGLOBAL_ERROR = 105`

#### VALID_TRAIT_ERROR

Error.php : 56
`public mixed VALID_TRAIT_ERROR = 110`

#### VALID_TYPE_ERROR

Error.php : 54
`public mixed VALID_TYPE_ERROR = 108`

#### VALID_VAR_ERROR

Error.php : 49
`public mixed VALID_VAR_ERROR = 103`

#### WHITELIST_ALIAS_ERROR

Error.php : 90
`public mixed WHITELIST_ALIAS_ERROR = 312`

#### WHITELIST_CLASS_ERROR

Error.php : 85
`public mixed WHITELIST_CLASS_ERROR = 307`

#### WHITELIST_CONST_ERROR

Error.php : 80
`public mixed WHITELIST_CONST_ERROR = 302`

#### WHITELIST_FUNC_ERROR

Error.php : 78
`public mixed WHITELIST_FUNC_ERROR = 300`

#### WHITELIST_GLOBAL_ERROR

Error.php : 82
`public mixed WHITELIST_GLOBAL_ERROR = 304`

#### WHITELIST_INTERFACE_ERROR

Error.php : 87
`public mixed WHITELIST_INTERFACE_ERROR = 309`

#### WHITELIST_KEYWORD_ERROR

Error.php : 79
`public mixed WHITELIST_KEYWORD_ERROR = 301`

#### WHITELIST_MAGIC_CONST_ERROR

Error.php : 84
`public mixed WHITELIST_MAGIC_CONST_ERROR = 306`

#### WHITELIST_NAMESPACE_ERROR

Error.php : 89
`public mixed WHITELIST_NAMESPACE_ERROR = 311`

#### WHITELIST_OPERATOR_ERROR

Error.php : 91
`public mixed WHITELIST_OPERATOR_ERROR = 313`

#### WHITELIST_PRIMITIVE_ERROR

Error.php : 92
`public mixed WHITELIST_PRIMITIVE_ERROR = 314`

#### WHITELIST_SUPERGLOBAL_ERROR

Error.php : 83
`public mixed WHITELIST_SUPERGLOBAL_ERROR = 305`

#### WHITELIST_TRAIT_ERROR

Error.php : 88
`public mixed WHITELIST_TRAIT_ERROR = 310`

#### WHITELIST_TYPE_ERROR

Error.php : 86
`public mixed WHITELIST_TYPE_ERROR = 308`

#### WHITELIST_VAR_ERROR

Error.php : 81
`public mixed WHITELIST_VAR_ERROR = 303`

### Properties

#### $data

Error.php : 117
`protected mixed $data`

The data of the Error

#### $node

Error.php : 113
`protected Node|null $node`

The node of the Error

### Methods

#### __construct()

Error.php : 125

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

Error.php : 136

Returns data of the Error

`public getData() : mixed`

##### Tags

alias

  get_data();

##### Return values

mixed —

The data of the error to return

#### getNode()

Error.php : 145

Returns parser node of the Error

`public getNode() : Node|null`

##### Tags

alias

  get_node();

##### Return values

Node|null —

The parser node of the error to return

## Search results