Error
extends Exception
in package
Table of Contents
Properties
- $code : int
- A Number that indicates the error type that occurred. This MUST be an integer.
- $data : mixed
- A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
- $message : string
- A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
Methods
- __construct() : mixed
Properties
$code
A Number that indicates the error type that occurred. This MUST be an integer.
public
int
$code
$data
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
public
mixed
$data
$message
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
public
string
$message
Methods
__construct()
public
__construct(string $message, int $code[, mixed $data = null ][, Throwable $previous = null ]) : mixed
Parameters
- $message : string
- $code : int
- $data : mixed = null
- $previous : Throwable = null