CustomException
extends Exception
in package
implements
IException
Class CustomException.
Table of Contents
Interfaces
- IException
- Interface IException.
Properties
Methods
- __construct() : mixed
- Constructor.
- __toString() : string
- Magic method to return the stringized form of CustomException.
Properties
$code
User-defined exception code.
protected
int
$code
= 0
$message
Exception message.
protected
string
$message
= 'Unknown exception'
Methods
__construct()
Constructor.
public
__construct([string|null $message = null ][, int $code = 0 ]) : mixed
Parameters
- $message : string|null = null
- $code : int = 0
__toString()
Magic method to return the stringized form of CustomException.
public
__toString() : string