JsonFormatException class

Exception thrown when a string does not have the expected JSON format and cannot be parsed.

Inheritance

Constructors

JsonFormatException([String message = '', String source, int offset])
Default constructor.
JsonFormatException.fromParent(FormatException parent)
Constructs a JsonFormatException starting from a parent FormatException.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
message String
A message describing the format error.
final, inherited
offset int
The offset in source where the error was detected. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source → dynamic
The actual source input which caused the error. [...]
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a description of the format exception. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited