PlatformChannelError class abstract
A class representing the errors thrown during platform channel calls.
- Inheritance
-
- Object
- MobileAuthenticationClientError
- PlatformChannelError
- Implementers
Constructors
-
PlatformChannelError.fromJson(Map<
String, dynamic> json) -
Alternate constructor that creates a PlatformChannelError from a json.
factory
- PlatformChannelError.illegalArgument({required String description})
-
An error that indicates that an illegal or inappropriate parameter has been
passed to a method.
factory
- PlatformChannelError.mappingError({required String description})
-
An error that indicates that the mapping failed during a platform call.
factory
- PlatformChannelError.noOperationFoundError({required String operationId})
-
An error that indicates that no operation found with a given identifier.
factory
- PlatformChannelError.nullPointerError({required String description})
-
An error that indicates that a parameter is
null
in a case where it is required.factory - PlatformChannelError.operationAlreadyExistsError({required String operationId})
-
An error that indicates that an operation already exists with the given
identifier.
factory
- PlatformChannelError.operationNullError({String? operationId})
-
An error that indicates that an operation with the given identifier does
not exist.
factory
- PlatformChannelError.unknownError({required String? description})
-
An error that indicates that something failed during a platform call.
factory
- PlatformChannelError.wrongOperationTypeError({required String operationId})
-
An error that indicates that an operation with the given identifier has
wrong type.
factory
Properties
- cause → String?
-
The exception (if any) that caused this error.
no setterinherited
- description → String
-
Provides details about the error that occurred.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromJson(
Map< String, dynamic> json) → dynamic -
Returns a value of the type you specify, deserialized from a JSON object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON-encoded representation of the value you supply.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited