BinaryError
extends RuntimeException
in package
implements
HasOffset
FinalYes
Error type for malformed `.dxnb` input -- the binary-side analog of `Text\ParseError`.
Table of Contents
Interfaces
- HasOffset
- Implemented by any exception that can report a byte/character offset into the source it failed on (lexer/parser errors) -- lets {@see DXNError::wrap()} preserve that offset without needing to know about every concrete exception class in the text/binary pipelines.
Properties
- $byteOffset : int|null
Methods
- __construct() : mixed
- offset() : int|null
Properties
$byteOffset read-only
private
int|null
$byteOffset
Methods
__construct()
public
__construct(string $message[, int|null $byteOffset = null ]) : mixed
Parameters
- $message : string
- $byteOffset : int|null = null
offset()
public
offset() : int|null