class ParserException extends Exception (View source)

'Fluent' exception for the Fusion Parser.

Constants

protected RESOURCE_PATH_TO_PACKAGE_AND_CLEANED_PATH_REGEXP

Properties

protected $fluentCode
protected $fluentMessageCreator
protected $fluentPrevious
protected $fluentFile
protected $fluentFusion
protected $fluentCursor
protected $fluentShowColumn
protected $headingMessagePart
protected $asciiPreviewMessagePart
protected $helperMessagePart

Methods

__construct()

No description

string
getHeadingMessagePart()

No description

string
getAsciiPreviewMessagePart()

No description

string
getHelperMessagePart()

No description

setCode(int $code)

No description

setFile(string|null $file)

No description

setFusion(string $fusion)

No description

setCursor(int $cursor)

No description

setPrevious(Exception|null $previous)

No description

setMessageCreator(callable $messageCreator)

No description

setMessage(string $message)

No description

build()

No description

string
static string
renderErrorLinePreview(string|null $fileName, string $currentLine, int $lineNumber, int $columnNumber, bool $renderColumnDetails = true)

No description

static string
generateHeadingByFileName(string|null $fileName)

No description

static array
splitAtCursorGetLinePartsAndLineNumber(string $string, int $cursor)

No description

Details

__construct()

No description

string getHeadingMessagePart()

No description

Return Value

string

string getAsciiPreviewMessagePart()

No description

Return Value

string

string getHelperMessagePart()

No description

Return Value

string

ParserException setCode(int $code)

No description

Parameters

int $code

Return Value

ParserException

ParserException setFile(string|null $file)

No description

Parameters

string|null $file

Return Value

ParserException

ParserException setFusion(string $fusion)

No description

Parameters

string $fusion

Return Value

ParserException

ParserException setCursor(int $cursor)

No description

Parameters

int $cursor

Return Value

ParserException

ParserException setPrevious(Exception|null $previous)

No description

Parameters

Exception|null $previous

Return Value

ParserException

ParserException setHideColumnInformation()

No description

Return Value

ParserException

ParserException setMessageCreator(callable $messageCreator)

No description

Parameters

callable $messageCreator

Return Value

ParserException

ParserException setMessage(string $message)

No description

Parameters

string $message

Return Value

ParserException

ParserException build()

No description

Return Value

ParserException

protected string renderAndInitializeFullMessage()

No description

Return Value

string

static protected string renderErrorLinePreview(string|null $fileName, string $currentLine, int $lineNumber, int $columnNumber, bool $renderColumnDetails = true)

No description

Parameters

string|null $fileName
string $currentLine
int $lineNumber
int $columnNumber
bool $renderColumnDetails

Return Value

string

static protected string generateHeadingByFileName(string|null $fileName)

No description

Parameters

string|null $fileName

Return Value

string

static protected array splitAtCursorGetLinePartsAndLineNumber(string $string, int $cursor)

No description

Parameters

string $string
int $cursor

Return Value

array