CountdownException
extends DomainException
in package
FinalYes
Countdown domain exceptions - contains translation KEYS
Table of Contents
Properties
- $context : array<string|int, mixed>
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- countToInThePast() : self
- Invalid datetime format
- emptyFields() : self
- All required fields are empty
- failedToCreate() : self
- Failed to create countdown
- failedToDelete() : self
- Failed to delete countdown
- failedToFetch() : self
- Failed to fetch countdown
- failedToUpdate() : self
- Failed to update countdown
- invalidId() : self
- Invalid or missing countdown ID
- notFound() : self
- Countdown isn't found in a database
- titleTooLong() : self
- Too long title
- titleTooShort() : self
- Too short a title
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
countToInThePast()
Invalid datetime format
public
static countToInThePast() : self
Return values
selfemptyFields()
All required fields are empty
public
static emptyFields() : self
Return values
selffailedToCreate()
Failed to create countdown
public
static failedToCreate() : self
Return values
selffailedToDelete()
Failed to delete countdown
public
static failedToDelete() : self
Return values
selffailedToFetch()
Failed to fetch countdown
public
static failedToFetch() : self
Return values
selffailedToUpdate()
Failed to update countdown
public
static failedToUpdate() : self
Return values
selfinvalidId()
Invalid or missing countdown ID
public
static invalidId(int $id) : self
Parameters
- $id : int
Return values
selfnotFound()
Countdown isn't found in a database
public
static notFound(int $id) : self
Parameters
- $id : int
Return values
selftitleTooLong()
Too long title
public
static titleTooLong(int $maxTitleLength) : self
Parameters
- $maxTitleLength : int
Return values
selftitleTooShort()
Too short a title
public
static titleTooShort(int $minTitleLength) : self
Parameters
- $minTitleLength : int