php-dextrin

LexError extends RuntimeException
in package
implements HasOffset

FinalYes

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

$codepointOffset  : int

Methods

__construct()  : mixed
offset()  : int

Properties

$codepointOffset read-only

private int $codepointOffset

Methods

__construct()

public __construct(string $message, int $codepointOffset) : mixed
Parameters
$message : string
$codepointOffset : int

offset()

public offset() : int
Return values
int
On this page

Search results