DisplayException
extends DomainException
in package
FinalYes
Display module exceptions - contains translation KEYS
Table of Contents
Properties
- $context : array<string|int, mixed>
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- failedToFetchAnnouncements() : self
- Failed to fetch announcements
- failedToFetchCountdown() : self
- Failed to fetch countdown
- failedToFetchDepartures() : self
- Failed to fetch tram departure data
- failedToFetchQuote() : self
- Failed to fetch quote
- failedToFetchWeather() : self
- Failed to fetch weather data
- failedToFetchWord() : self
- Failed to fetch word
- moduleNotVisible() : self
- Module is not visible/active
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
failedToFetchAnnouncements()
Failed to fetch announcements
public
static failedToFetchAnnouncements() : self
Return values
selffailedToFetchCountdown()
Failed to fetch countdown
public
static failedToFetchCountdown() : self
Return values
selffailedToFetchDepartures()
Failed to fetch tram departure data
public
static failedToFetchDepartures() : self
Return values
selffailedToFetchQuote()
Failed to fetch quote
public
static failedToFetchQuote() : self
Return values
selffailedToFetchWeather()
Failed to fetch weather data
public
static failedToFetchWeather() : self
Return values
selffailedToFetchWord()
Failed to fetch word
public
static failedToFetchWord() : self
Return values
selfmoduleNotVisible()
Module is not visible/active
public
static moduleNotVisible(string $module) : self
Parameters
- $module : string