Exception
class Exception extends Exception (View source)
A generic Controller exception
Properties
protected string | $referenceCode | from Exception | |
protected int | $statusCode | from Exception | |
protected ActionRequest | $request |
Methods
Returns a code which can be communicated publicly so that whoever experiences the exception can refer to it and a developer can find more information about it in the system log.
Returns the HTTP status code this exception corresponds to (defaults to 500).
Overwrites parent constructor to be able to inject current request object.
Returns the request object that exception belongs to.
Details
string
getReferenceCode()
Returns a code which can be communicated publicly so that whoever experiences the exception can refer to it and a developer can find more information about it in the system log.
int
getStatusCode()
Returns the HTTP status code this exception corresponds to (defaults to 500).
__construct(string $message, int $code, Exception|null $previousException, ActionRequest $request)
Overwrites parent constructor to be able to inject current request object.
protected ActionRequest
getRequest()
Returns the request object that exception belongs to.