php-dextrin

ParseError 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|null

Methods

__construct()  : mixed
offset()  : int|null

Properties

$codepointOffset read-only

private int|null $codepointOffset

Methods

__construct()

public __construct(string $message[, int|null $codepointOffset = null ]) : mixed
Parameters
$message : string
$codepointOffset : int|null = null

offset()

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

Search results