Enum LiteRtStatusCode
- Namespace
- LiteRtLmSharp
- Assembly
- LiteRtLmSharp.dll
The canonical status codes the LiteRT-LM runtime reports for a failed call (the same values as
absl::StatusCode and google.rpc.Code). See StatusCode.
public enum LiteRtStatusCode
Fields
Aborted = 10The operation was aborted.
AlreadyExists = 6The entity to create already exists.
Cancelled = 1The operation was cancelled.
DataLoss = 15Unrecoverable data loss or corruption.
DeadlineExceeded = 4A deadline expired before the operation completed.
FailedPrecondition = 9The system is not in a state the operation requires.
Internal = 13An internal error in the runtime.
InvalidArgument = 3An argument was invalid (for example a malformed setting or an unusable cache directory).
NotFound = 5A requested entity (such as a file) was not found.
Ok = 0Not an error.
OutOfRange = 11The operation went past a valid range.
PermissionDenied = 7The caller lacks permission for the operation.
ResourceExhausted = 8A resource (memory, context space, a quota) is exhausted.
Unauthenticated = 16The request lacks valid authentication.
The service is currently unavailable.
Unimplemented = 12The operation is not implemented or not supported (for example by this backend).
Unknown = 2An unknown error, or a code this version does not recognize.
Remarks
The values are frozen by the native API; a code this version does not recognize is read as Unknown.