ErrorCode enum
Represents error codes used in the Askar SDK.
Values
- success → const ErrorCode
-
Operation was successful.
const ErrorCode(0)
- backend → const ErrorCode
-
Backend error occurred.
const ErrorCode(1)
- busy → const ErrorCode
-
Operation is busy.
const ErrorCode(2)
- duplicate → const ErrorCode
-
Duplicate entry found.
const ErrorCode(3)
- encryption → const ErrorCode
-
Encryption error occurred.
const ErrorCode(4)
- input → const ErrorCode
-
Input error occurred.
const ErrorCode(5)
- notFound → const ErrorCode
-
Entry not found.
const ErrorCode(6)
- unexpected → const ErrorCode
-
Unexpected error occurred.
const ErrorCode(7)
- unsupported → const ErrorCode
-
Operation is unsupported.
const ErrorCode(8)
- custom → const ErrorCode
-
Custom error occurred.
const ErrorCode(100)
Properties
- code → int
-
The integer value associated with the error code.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isSuccess(
) → bool - Checks if the error code represents a successful operation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
throwOnError(
) → void - Throws an AskarErrorCodeException if the error code is not successful.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited