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
messageatlineandcolumnof 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
sourceit 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
FormatExceptiontoo, because that is what the engine threw for bad bytes before this family existed, and code written then catches it ason 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