CodableException class abstract

Implemented types
Implementers

Constructors

CodableException.unexpectedType({required String expected, String? actual, Object? data, int? offset})
Throws a FormatException with the message 'Unexpected type: Expected x but got y "..." at offset z.'. The message will include the expected type, the actual type if provided and the actual token at the provided offset if available.
factory
CodableException.unsupportedMethod(String clazz, String method, {Object? reason})
Throws an UnsupportedError with the message "Unsupported method: 'Class.method()'". The message will include a reason if provided.
factory
CodableException.wrap(Object error, {required String method, required String hint})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
no setter
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