DuplicatedKeyException
extends RepoException
in package
Description of RepoException
Tags
Table of Contents
Constants
- TOO_MANY_CONNECTIONS = 429
Properties
- $existingResourceId : int|null
- $headers : array<string, string|array<string|int, string>>
- HTTP response headers to be set
Methods
- __construct() : mixed
- getExistingResourceId() : int|null
- getHeaders() : array<string, string|array<string|int, string>>
Constants
TOO_MANY_CONNECTIONS
public
mixed
TOO_MANY_CONNECTIONS
= 429
Properties
$existingResourceId
private
int|null
$existingResourceId
$headers
HTTP response headers to be set
private
array<string, string|array<string|int, string>>
$headers
Methods
__construct()
public
__construct([string $message = "Duplicated resource identifier" ][, int $code = 409 ][, Throwable|null $previous = null ][, int|null $existingResourceId = null ]) : mixed
Parameters
- $message : string = "Duplicated resource identifier"
- $code : int = 409
- $previous : Throwable|null = null
- $existingResourceId : int|null = null
getExistingResourceId()
public
getExistingResourceId() : int|null
Return values
int|nullgetHeaders()
public
getHeaders() : array<string, string|array<string|int, string>>