DoDomuDojade Documentation

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

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
self

missingData()

Data required for view is missing

public static missingData(string $dataKey) : self
Parameters
$dataKey : string
Return values
self

userNotAuthenticated()

User is not authenticated

public static userNotAuthenticated() : self
Return values
self

        
On this page

Search results