ErrorCodes class
The error codes used by OmnyStore.
try {
await client.latestRelease(packageName: 'omnyagent');
} on ApiException catch (e) {
if (e.code == ErrorCodes.releaseNotFound) return null;
rethrow;
}
Properties
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- apiError → const String
- The API returned a response the client could not interpret, or a status the client did not expect.
- assetNotFound → const String
- The referenced asset does not exist.
- checksumMismatch → const String
- Downloaded bytes did not match the expected checksum.
- cliError → const String
- The CLI was invoked incorrectly or a command failed.
- conflict → const String
- A resource with the same unique key already exists.
- downloadFailed → const String
- A download could not be completed (transport failure, bad status...).
- forbidden → const String
- The caller is authenticated but not permitted to perform the operation.
- invalidJson → const String
- A payload could not be parsed as the expected JSON shape.
- notFound → const String
- A resource does not exist and no more specific code applies.
- organizationNotFound → const String
- The referenced organization does not exist.
- packageNotFound → const String
- The referenced package does not exist.
- projectNotFound → const String
- The referenced project does not exist.
- releaseNotFound → const String
- The referenced release does not exist.
- storageError → const String
- The object storage backend failed.
- timeout → const String
- An operation exceeded its deadline.
- The caller is not authenticated (missing or invalid credentials).
- unsupported → const String
- An operation is not supported by the configured backend.
- validationError → const String
- A value failed validation (bad name, malformed version, negative size...).