InactivePackageException
class InactivePackageException extends Exception (View source)
An Inactive Package Exception
Properties
protected string | $referenceCode | from Exception | |
protected int | $statusCode | from Exception | |
protected ActionRequest | $request | from Exception |
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.
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.