Error extends Error
Class Error
Table of Contents
Methods
- __construct() : mixed
- Creates a new Error.
- getData() : mixed
Methods
__construct()
Creates a new Error.
public
__construct(string $message[, int|string $code = 0 ][, mixed|null $data = null ]) : mixed
Parameters
- $message : string
-
Message of the error.
- $code : int|string = 0
-
Code of the error.
- $data : mixed|null = null
-
Data.
getData()
public
getData() : mixed