UserException
extends RuntimeException
in package
The user exception class
This exception is thrown when an occurred caused by the user.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
- __toString() : string
- Get the string representation of this exception
- getChannel() : string
- getDomain() : string|null
- Get the domain
- getReport() : string
- Get the report from this exception
- getText() : string
- Get the user's message
- setDomain() : void
- Set the domain
Properties
$channel
The log channel
protected
string
$channel
= LOGFILE_SYSTEM
$domain
The translation domain
protected
string|null
$domain
= null
Methods
__construct()
Constructor
public
__construct([string|null $message = null ][, string|null $domain = null ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string|null = null
-
The exception message
- $domain : string|null = null
-
The domain for the message, optional, allow $code
- $code : int = 0
-
The code of the exception
- $previous : Throwable|null = null
-
The previous exception
__toString()
Get the string representation of this exception
public
__toString() : string
Return values
stringgetChannel()
public
getChannel() : string
Return values
stringgetDomain()
Get the domain
public
getDomain() : string|null
Return values
string|nullgetReport()
Get the report from this exception
public
getReport() : string
Return values
string —The report
getText()
Get the user's message
public
getText() : string
Return values
string —The translated message from this exception
setDomain()
Set the domain
public
setDomain(string|null $domain) : void
Parameters
- $domain : string|null
-
The new domain