AnnouncementRepositoryException
extends DomainException
in package
Basic exception for domain errors
Table of Contents
Properties
- $context : array<string|int, mixed>
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- fetchFailed() : self
- persistenceFailed() : self
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
fetchFailed()
public
static fetchFailed(string $message[, Throwable|null $previous = null ]) : self
Parameters
- $message : string
- $previous : Throwable|null = null
Return values
selfpersistenceFailed()
public
static persistenceFailed(string $message[, Throwable|null $previous = null ]) : self
Parameters
- $message : string
- $previous : Throwable|null = null