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

File
  Error.php
Package
  PHPSandbox
Class hierarchy
  \Exception
  \PHPSandbox\Error

## Tags

namespace | PHPSandbox
author | Elijah Horton elijah@corveda.com
version |

## Constants

### PARSER_ERROR

    PARSER_ERROR

#

## Tags

None found

### ESCAPE_ERROR

    ESCAPE_ERROR

#

## Tags

None found

### HALT_ERROR

    HALT_ERROR

#

## Tags

None found

### CAST_ERROR

    CAST_ERROR

#

## Tags

None found

### CLOSURE_ERROR

    CLOSURE_ERROR

#

## Tags

None found

### BYREF_ERROR

    BYREF_ERROR

#

## Tags

None found

### GENERATOR_ERROR

    GENERATOR_ERROR

#

## Tags

None found

### GLOBALS_ERROR

    GLOBALS_ERROR

#

## Tags

None found

### DYNAMIC_VAR_ERROR

    DYNAMIC_VAR_ERROR

#

## Tags

None found

### STATIC_VAR_ERROR

    STATIC_VAR_ERROR

#

## Tags

None found

### ERROR_SUPPRESS_ERROR

    ERROR_SUPPRESS_ERROR

#

## Tags

None found

### BACKTICKS_ERROR

    BACKTICKS_ERROR

#

## Tags

None found

### IMPORT_ERROR

    IMPORT_ERROR

#

## Tags

None found

### INCLUDE_ERROR

    INCLUDE_ERROR

#

## Tags

None found

### DYNAMIC_STATIC_VAR_ERROR

    DYNAMIC_STATIC_VAR_ERROR

#

## Tags

None found

### DYNAMIC_CONST_ERROR

    DYNAMIC_CONST_ERROR

#

## Tags

None found

### DYNAMIC_CLASS_ERROR

    DYNAMIC_CLASS_ERROR

#

## Tags

None found

### SANDBOX_ACCESS_ERROR

    SANDBOX_ACCESS_ERROR

#

## Tags

None found

### GLOBAL_CONST_ERROR

    GLOBAL_CONST_ERROR

#

## Tags

None found

### CREATE_OBJECT_ERROR

    CREATE_OBJECT_ERROR

#

## Tags

None found

### VALID_FUNC_ERROR

    VALID_FUNC_ERROR

#

## Tags

None found

### VALID_KEYWORD_ERROR

    VALID_KEYWORD_ERROR

#

## Tags

None found

### VALID_CONST_ERROR

    VALID_CONST_ERROR

#

## Tags

None found

### VALID_VAR_ERROR

    VALID_VAR_ERROR

#

## Tags

None found

### VALID_GLOBAL_ERROR

    VALID_GLOBAL_ERROR

#

## Tags

None found

### VALID_SUPERGLOBAL_ERROR

    VALID_SUPERGLOBAL_ERROR

#

## Tags

None found

### VALID_MAGIC_CONST_ERROR

    VALID_MAGIC_CONST_ERROR

#

## Tags

None found

### VALID_CLASS_ERROR

    VALID_CLASS_ERROR

#

## Tags

None found

### VALID_TYPE_ERROR

    VALID_TYPE_ERROR

#

## Tags

None found

### VALID_INTERFACE_ERROR

    VALID_INTERFACE_ERROR

#

## Tags

None found

### VALID_TRAIT_ERROR

    VALID_TRAIT_ERROR

#

## Tags

None found

### VALID_NAMESPACE_ERROR

    VALID_NAMESPACE_ERROR

#

## Tags

None found

### VALID_ALIAS_ERROR

    VALID_ALIAS_ERROR

#

## Tags

None found

### VALID_OPERATOR_ERROR

    VALID_OPERATOR_ERROR

#

## Tags

None found

### VALID_PRIMITIVE_ERROR

    VALID_PRIMITIVE_ERROR

#

## Tags

None found

### DEFINE_FUNC_ERROR

    DEFINE_FUNC_ERROR

#

## Tags

None found

### DEFINE_KEYWORD_ERROR

    DEFINE_KEYWORD_ERROR

#

## Tags

None found

### DEFINE_CONST_ERROR

    DEFINE_CONST_ERROR

#

## Tags

None found

### DEFINE_VAR_ERROR

    DEFINE_VAR_ERROR

#

## Tags

None found

### DEFINE_GLOBAL_ERROR

    DEFINE_GLOBAL_ERROR

#

## Tags

None found

### DEFINE_SUPERGLOBAL_ERROR

    DEFINE_SUPERGLOBAL_ERROR

#

## Tags

None found

### DEFINE_MAGIC_CONST_ERROR

    DEFINE_MAGIC_CONST_ERROR

#

## Tags

None found

### DEFINE_CLASS_ERROR

    DEFINE_CLASS_ERROR

#

## Tags

None found

### DEFINE_TYPE_ERROR

    DEFINE_TYPE_ERROR

#

## Tags

None found

### DEFINE_INTERFACE_ERROR

    DEFINE_INTERFACE_ERROR

#

## Tags

None found

### DEFINE_TRAIT_ERROR

    DEFINE_TRAIT_ERROR

#

## Tags

None found

### DEFINE_NAMESPACE_ERROR

    DEFINE_NAMESPACE_ERROR

#

## Tags

None found

### DEFINE_ALIAS_ERROR

    DEFINE_ALIAS_ERROR

#

## Tags

None found

### DEFINE_OPERATOR_ERROR

    DEFINE_OPERATOR_ERROR

#

## Tags

None found

### DEFINE_PRIMITIVE_ERROR

    DEFINE_PRIMITIVE_ERROR

#

## Tags

None found

### WHITELIST_FUNC_ERROR

    WHITELIST_FUNC_ERROR

#

## Tags

None found

### WHITELIST_KEYWORD_ERROR

    WHITELIST_KEYWORD_ERROR

#

## Tags

None found

### WHITELIST_CONST_ERROR

    WHITELIST_CONST_ERROR

#

## Tags

None found

### WHITELIST_VAR_ERROR

    WHITELIST_VAR_ERROR

#

## Tags

None found

### WHITELIST_GLOBAL_ERROR

    WHITELIST_GLOBAL_ERROR

#

## Tags

None found

### WHITELIST_SUPERGLOBAL_ERROR

    WHITELIST_SUPERGLOBAL_ERROR

#

## Tags

None found

### WHITELIST_MAGIC_CONST_ERROR

    WHITELIST_MAGIC_CONST_ERROR

#

## Tags

None found

### WHITELIST_CLASS_ERROR

    WHITELIST_CLASS_ERROR

#

## Tags

None found

### WHITELIST_TYPE_ERROR

    WHITELIST_TYPE_ERROR

#

## Tags

None found

### WHITELIST_INTERFACE_ERROR

    WHITELIST_INTERFACE_ERROR

#

## Tags

None found

### WHITELIST_TRAIT_ERROR

    WHITELIST_TRAIT_ERROR

#

## Tags

None found

### WHITELIST_NAMESPACE_ERROR

    WHITELIST_NAMESPACE_ERROR

#

## Tags

None found

### WHITELIST_ALIAS_ERROR

    WHITELIST_ALIAS_ERROR

#

## Tags

None found

### WHITELIST_OPERATOR_ERROR

    WHITELIST_OPERATOR_ERROR

#

## Tags

None found

### WHITELIST_PRIMITIVE_ERROR

    WHITELIST_PRIMITIVE_ERROR

#

## Tags

None found

### BLACKLIST_FUNC_ERROR

    BLACKLIST_FUNC_ERROR

#

## Tags

None found

### BLACKLIST_KEYWORD_ERROR

    BLACKLIST_KEYWORD_ERROR

#

## Tags

None found

### BLACKLIST_CONST_ERROR

    BLACKLIST_CONST_ERROR

#

## Tags

None found

### BLACKLIST_VAR_ERROR

    BLACKLIST_VAR_ERROR

#

## Tags

None found

### BLACKLIST_GLOBAL_ERROR

    BLACKLIST_GLOBAL_ERROR

#

## Tags

None found

### BLACKLIST_SUPERGLOBAL_ERROR

    BLACKLIST_SUPERGLOBAL_ERROR

#

## Tags

None found

### BLACKLIST_MAGIC_CONST_ERROR

    BLACKLIST_MAGIC_CONST_ERROR

#

## Tags

None found

### BLACKLIST_CLASS_ERROR

    BLACKLIST_CLASS_ERROR

#

## Tags

None found

### BLACKLIST_TYPE_ERROR

    BLACKLIST_TYPE_ERROR

#

## Tags

None found

### BLACKLIST_INTERFACE_ERROR

    BLACKLIST_INTERFACE_ERROR

#

## Tags

None found

### BLACKLIST_TRAIT_ERROR

    BLACKLIST_TRAIT_ERROR

#

## Tags

None found

### BLACKLIST_NAMESPACE_ERROR

    BLACKLIST_NAMESPACE_ERROR

#

## Tags

None found

### BLACKLIST_ALIAS_ERROR

    BLACKLIST_ALIAS_ERROR

#

## Tags

None found

### BLACKLIST_OPERATOR_ERROR

    BLACKLIST_OPERATOR_ERROR

#

## Tags

None found

### BLACKLIST_PRIMITIVE_ERROR

    BLACKLIST_PRIMITIVE_ERROR

#

## Tags

None found

## Properties

### $node

    $node : \PhpParser\Node|null

#### Type

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

#

## Tags

None found

### $data

    $data : mixed

#### Type

mixed — The data of the Error

#

## Tags

None found

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

#

## Tags

None found

### getData()

    getData() : mixed

Returns data of the Error

#### Returns

mixed —

The data of the error to return

#

## Tags

alias | get_data();

### getNode()

    getNode() : \PhpParser\Node|null

Returns parser node of the Error

#### Returns

\PhpParser\Node|null —

The parser node of the error to return

#

## Tags

alias | get_node();

### Error.php