php-dextrin

DocumentError extends RuntimeException
in package
implements HasCategory

FinalYes

Why a {@see \JOetjen\Dextrin\Document} edit was refused: the path led nowhere (`document/not-found`), to no collection (`document/not-a-collection`), to a key already there (`document/exists`), or an update could not tell which edit was meant without risking a comment (`document/ambiguous`).

Table of Contents

Interfaces

HasCategory
Implemented by any exception that knows its DXN.md ยง5 category -- `syntax`, `binary`, `encode/unsupported`, ... -- so {@see DXNError::wrap()} can carry it across without knowing every concrete exception class, the way {@see HasOffset} carries an offset.

Properties

$path  : array<string|int, mixed>
$reason  : string

Methods

__construct()  : mixed
category()  : string
The category, or null for an exception that has none.

Properties

Methods

__construct()

public __construct(string $reason, array<int, mixed> $path) : mixed
Parameters
$reason : string
$path : array<int, mixed>

category()

The category, or null for an exception that has none.

public category() : string
Return values
string
On this page

Search results