MaterialSyntaxException class final

A material source that could not be read, with where it went wrong.

Line and column rather than a byte offset: the author is looking at the text in an editor, and "at 1:14" is a place they can put a cursor.

Implemented types

Constructors

MaterialSyntaxException(String message, int line, int column)
A refusal saying message at line and column of the source.
const

Properties

cause → Object?
What was thrown underneath, when this one wraps it; null otherwise.
no setterinherited
column → int
The column on line where reading failed, counted from one.
final
hashCode → int
The hash code for this object.
no setterinherited
line → int
The source line where reading failed, counted from one.
final
message → String
What went wrong, as a sentence that names the thing it went wrong with.
final
offset → int?
Where in source it failed, where a refusal knows; null by default.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → Object?
A FormatException too, because that is what the engine threw for bad bytes before this family existed, and code written then catches it as on FormatException. Replacing a bare throw with one of these keeps that code catching it.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.

Operators

operator ==(Object other) → bool
The equality operator.
inherited