class Exception extends Exception

Custom exception class

Methods

__construct(int $code, string $message, array ...$params)

Create a new instance

static 
wrap(callable $target, int $code, string $message, array ...$params)

Wrap some code and catch errors with a custom exception

Details

at line 26
__construct(int $code, string $message, array ...$params)

Create a new instance

Parameters

int $code Error code
string $message Error message
array ...$params Error params

at line 54
static wrap(callable $target, int $code, string $message, array ...$params)

Wrap some code and catch errors with a custom exception

Parameters

callable $target Function to wrap and execute
int $code Error code
string $message Error message
array ...$params Error params