ViewException
extends DomainException
in package
FinalYes
View/Panel domain exceptions - contains translation KEYS
Table of Contents
Properties
- $context : array<string|int, mixed>
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- failedToLoadView() : self
- Failed to load a view
- missingData() : self
- Data required for view is missing
- userNotAuthenticated() : self
- User is not authenticated
Properties
$context read-only
public
array<string|int, mixed>
$context
= []
$errorCode read-only
public
string
$errorCode
$httpStatusCode read-only
public
int
$httpStatusCode
= 400
Methods
__construct()
public
__construct(string $message, string $errorCode[, int $httpStatusCode = 400 ][, array<string|int, mixed> $context = [] ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string
- $errorCode : string
- $httpStatusCode : int = 400
- $context : array<string|int, mixed> = []
- $previous : Throwable|null = null
failedToLoadView()
Failed to load a view
public
static failedToLoadView(string $viewName) : self
Parameters
- $viewName : string
Return values
selfmissingData()
Data required for view is missing
public
static missingData(string $dataKey) : self
Parameters
- $dataKey : string
Return values
selfuserNotAuthenticated()
User is not authenticated
public
static userNotAuthenticated() : self