TaskException class base
Contains Exception information associated with a failed Task
The exceptionType categorizes and describes the exception
The description is typically taken from the platform-generated
exception message, or from the plugin. The localization is undefined
For the TaskHttpException, the httpResponseCode
is only valid if >0
and may offer details about the nature of the error
- Implemented types
- Implementers
Constructors
- TaskException(String description)
-
TaskException.fromJson(Map<
String, dynamic> json) -
Create object from
json
factory - TaskException.fromTypeString(String typeString, String description, [int httpResponseCode = -1])
-
Create object from String description of the type, and parameters
factory
Properties
- description → String
-
final
- exceptionType → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toJson(
) → Map< String, dynamic> - Return JSON Map representing object
-
toJsonString(
) → String - Return JSON String representing object
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited