class Exception extends Exception (View source)

Methods

__construct(string $message, int $code = 0, int $trace = 2, Throwable $previous = null)

Create a new exception instance, optionally adjusting file and line based on a specific stack trace depth.

Details

__construct(string $message, int $code = 0, int $trace = 2, Throwable $previous = null)

Create a new exception instance, optionally adjusting file and line based on a specific stack trace depth.

Parameters

string $message
int $code
int $trace
Throwable $previous