class InvalidPackageException extends Exception (View source)

An Invalid Package Exception.

Properties

protected string $referenceCode from  Exception
protected int $statusCode from  Exception
protected ActionRequest $request from  Exception

Methods

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 = 0, Exception $previousException = null, ActionRequest $request)

Overwrites parent constructor to be able to inject current request object.

getRequest()

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.

Return Value

string

int getStatusCode()

Returns the HTTP status code this exception corresponds to (defaults to 500).

Return Value

int

__construct(string $message = '', int $code = 0, Exception $previousException = null, ActionRequest $request)

Overwrites parent constructor to be able to inject current request object.

Parameters

string $message
int $code
Exception $previousException
ActionRequest $request

See also

Exception

protected ActionRequest getRequest()

Returns the request object that exception belongs to.

Return Value

ActionRequest