DoDomuDojade Documentation

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

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
self

emptyFields()

All required fields are empty

public static emptyFields() : self
Return values
self

failedToCreate()

Failed to create countdown

public static failedToCreate() : self
Return values
self

failedToDelete()

Failed to delete countdown

public static failedToDelete() : self
Return values
self

failedToFetch()

Failed to fetch countdown

public static failedToFetch() : self
Return values
self

failedToUpdate()

Failed to update countdown

public static failedToUpdate() : self
Return values
self

invalidId()

Invalid or missing countdown ID

public static invalidId(int $id) : self
Parameters
$id : int
Return values
self

notFound()

Countdown isn't found in a database

public static notFound(int $id) : self
Parameters
$id : int
Return values
self

titleTooLong()

Too long title

public static titleTooLong(int $maxTitleLength) : self
Parameters
$maxTitleLength : int
Return values
self

titleTooShort()

Too short a title

public static titleTooShort(int $minTitleLength) : self
Parameters
$minTitleLength : int
Return values
self

        
On this page

Search results