UnsupportedValue
extends InvalidArgumentException
in package
implements
HasCategory
FinalYes
A value with no DXN meaning -- a closure, a resource -- refused by the printer and the binary encoder alike, with DXN.md §5's `encode/unsupported` category.
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.
Methods
- category() : string
- The category, or null for an exception that has none.
- of() : self
- symbol() : self
- A symbol whose name is not an identifier (DXN.md §1.1): it has no text form, since writing the name verbatim would read back as something else, or as nothing.
Methods
category()
The category, or null for an exception that has none.
public
category() : string
Return values
stringof()
public
static of(mixed $value) : self
Parameters
- $value : mixed
Return values
selfsymbol()
A symbol whose name is not an identifier (DXN.md §1.1): it has no text form, since writing the name verbatim would read back as something else, or as nothing.
public
static symbol(string $name) : self
Parameters
- $name : string