JsonNodeException class
The error a JsonNode accessor throws when the node has the wrong
kind, such as stringValue() on a number, or cannot be converted.
It is a JsonMappingException, so code that handles mapping errors
handles it too. Avoid it with the as... accessors and a default.
- Inheritance
-
- Object
- JsonMappingException
- JsonNodeException
Constructors
- JsonNodeException(String message)
-
An error described by
message.
Properties
- cause → Object?
-
The underlying error, such as a
FormatExceptionfor invalid JSON or what a constructor threw;nullwhen there is none.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What went wrong, without the path.
finalinherited
- path → String
-
Where the problem is, such as
items[2].price; empty for the whole value.finalinherited - 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited