FunctionError class
Exception returned when a function fails to be executed. FunctionError
- Annotations
Constructors
- FunctionError(String message, int code)
- Default constructor.
- FunctionError.fromException(PlatformException e)
-
Obtains the result code of an exception.
factory
- FunctionError.fromJson(String source)
-
Creates a FunctionError object from a JSON string.
factory
-
FunctionError.fromMap(Map<
String, dynamic> map) -
Creates a FunctionError object from a map.
factory
Properties
- code → int
-
final
- hashCode → int
-
Generates the hash code for a FunctionError object.
no setteroverride
- message → String
-
final
- 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(
) → String - Converts FunctionError object to JSON string.
-
toMap(
) → Map< String, dynamic> - Converts FunctionError object to map.
-
toString(
) → String -
Converts FunctionError object to string.
override
Operators
-
operator ==(
Object other) → bool -
Compares two FunctionError objects.
override
Constants
- UNKNOW_ERROR_CODE → const int