AmplifyException class abstract

Thrown from top level Amplify APIs from the amplify-flutter package. All other Amplify APIs throw subclasses of AmplifyException.

Implemented types
Mixed in types
Implementers
Annotations
  • @immutable

Constructors

AmplifyException(String message, {String? recoverySuggestion, Object? underlyingException})
Thrown from top level Amplify APIs from the amplify-flutter package. All other Amplify APIs throw subclasses of AmplifyException.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A descriptive message of the problem.
final
props List<Object?>
The type's equatable properties.
no setteroverride
recoverySuggestion String?
How to recover from this exception.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
runtimeTypeName String
The string value of runtimeType, saving a runtime lookup and preventing obfuscation during web compilation.
no setteroverride
underlyingException Object?
Underlying cause of this exception helpful for debugging.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serializes this as a JSON object.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<String, String> serializedException) AmplifyException
Instantiates and return a new AmplifyException from the serialized exception data