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
Methods
- __construct() : mixed
- category() : string
- The category, or null for an exception that has none.
Properties
$path read-only
public
array<string|int, mixed>
$path
$reason read-only
public
string
$reason
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