UserReportsException
extends UserException
in package
The User Reports Exception class
This exception is thrown when we get multiple reports, this class is used instead of UserException
Table of Contents
Properties
- $channel : string
- The log channel
- $domain : string|null
- The translation domain
- $reports : array<string|int, mixed>
- The reports
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
- getReports() : array<string|int, mixed>
- Get all the reports
- getText() : string
- Get the user's message
- setDomain() : void
- Set the domain
- setReports() : self
- Set the reports
Properties
$channel
The log channel
protected
string
$channel
= LOGFILE_SYSTEM
$domain
The translation domain
protected
string|null
$domain
= null
$reports
The reports
protected
array<string|int, mixed>
$reports
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
getReports()
Get all the reports
public
getReports() : array<string|int, mixed>
Return values
array<string|int, mixed> —$reports
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
setReports()
Set the reports
public
setReports(array<string|int, mixed> $reports) : self
Parameters
- $reports : array<string|int, mixed>