PdataParseException class

Thrown by the YAML and TOML parsers when the input text is malformed.

JSON parse failures surface as Dart's own FormatException (thrown by dart:convert), so this type is only used by pdata's own YAML and TOML parsers.

Implemented types

Constructors

PdataParseException(String message, {int? line})
Creates a PdataParseException with the given message and optional line number.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
line int?
The 1-based line number the error occurred on, if known.
final
message String
A human-readable description of what went wrong.
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