MapperException class Mapper Container
General exception class used throughout the package.
- Implemented types
Constructors
- MapperException.chain(MapperMethod method, String hint, Object error)
-
Exception for tracking the deep origin of another exception.
factory
- MapperException.incorrectEncoding(Type source, String expected, Type actual)
-
Exception when getting an unexpected type from an encoder.
factory
- MapperException.missingConstructor(String className)
-
Exception when a class has no valid constructor for serialization.
factory
- MapperException.missingParameter(String key)
-
Exception when a required parameter is missing while serialization.
factory
- MapperException.missingSubclass(String className, String discriminatorKey, String discriminatorValue)
-
Exception when a discriminator for an abstract class has no match.
factory
- MapperException.unexpectedType(Type actual, String expected)
-
Exception when passing an unexpected type to a decoder.
factory
- MapperException.unknownEnumValue(dynamic value)
-
Exception when an encoded enum value has no match.
factory
- MapperException.unknownType(Type t)
-
Exception when trying to get a mapper for an unregistered type.
factory
- MapperException.unresolvedType(String type)
-
Exception when a given type cannot be resolved.
factory
- MapperException.unsupportedMethod(MapperMethod method, Type type)
-
Exception when a method is called that was not specified for generation.
factory
Properties
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