ParserException class
Indicates that there an error was detected while parsing a file.
This is used by parseDataFile and parseLibraryFile to indicate that the given file has a syntax or semantic error.
The line and column describe how far the parser had reached when the error was detected (this may not precisely indicate the actual location of the error).
The message property is a human-readable string describing the error.
- Implemented types
Constructors
- ParserException(String message, int line, int column)
-
Create an instance of ParserException.
const
Properties
- column → int
-
The column number (using 1-based indexing) that the parser had reached
when the error was detected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- line → int
-
The line number (using 1-based indexing) that the parser had reached when
the error was detected.
final
- message → String
-
The error that was detected by the parser.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited