ServiceErrorCode enum
Enumeration of service error codes used throughout the Calljmp SDK.
Each error code represents a specific type of error that can occur when interacting with the Calljmp service. The numeric values correspond to the error codes returned by the backend service.
Error codes are grouped by category:
- 1000-1999: General HTTP errors
- 2000-2999: User-related errors
- 3000-3999: Usage and quota errors
Values
- internal → const ServiceErrorCode
-
Internal server error (1000).
Indicates an unexpected error occurred on the server side.
const ServiceErrorCode(1000) - notFound → const ServiceErrorCode
-
Resource not found error (1001).
The requested resource does not exist or is not accessible.
const ServiceErrorCode(1001) -
Unauthorized access error (1002).
The request lacks valid authentication credentials.
const ServiceErrorCode(1002) - badRequest → const ServiceErrorCode
-
Bad request error (1003).
The request is malformed or contains invalid parameters.
const ServiceErrorCode(1003) - forbidden → const ServiceErrorCode
-
Forbidden access error (1004).
The authenticated user lacks permission to access the resource.
const ServiceErrorCode(1004) - tooManyRequests → const ServiceErrorCode
-
Too many requests error (1005).
The request rate limit has been exceeded.
const ServiceErrorCode(1005) - userAlreadyExists → const ServiceErrorCode
-
User already exists error (2000).
Attempted to create a user that already exists in the system.
const ServiceErrorCode(2000) - userNotFound → const ServiceErrorCode
-
User not found error (2001).
The specified user does not exist in the system.
const ServiceErrorCode(2001) - usageExceeded → const ServiceErrorCode
-
Usage exceeded error (3000).
The account has exceeded its usage quota or limits.
const ServiceErrorCode(3000)
Properties
- 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
- value → int
-
The numeric error code value.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → ServiceErrorCode? - Returns a ServiceErrorCode from its numeric value.
Constants
-
values
→ const List<
ServiceErrorCode> - A constant List of the values in this enum, in order of their declaration.