Table of Contents

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 = 10

The operation was aborted.

AlreadyExists = 6

The entity to create already exists.

Cancelled = 1

The operation was cancelled.

DataLoss = 15

Unrecoverable data loss or corruption.

DeadlineExceeded = 4

A deadline expired before the operation completed.

FailedPrecondition = 9

The system is not in a state the operation requires.

Internal = 13

An internal error in the runtime.

InvalidArgument = 3

An argument was invalid (for example a malformed setting or an unusable cache directory).

NotFound = 5

A requested entity (such as a file) was not found.

Ok = 0

Not an error.

OutOfRange = 11

The operation went past a valid range.

PermissionDenied = 7

The caller lacks permission for the operation.

ResourceExhausted = 8

A resource (memory, context space, a quota) is exhausted.

Unauthenticated = 16

The request lacks valid authentication.

Unavailable = 14

The service is currently unavailable.

Unimplemented = 12

The operation is not implemented or not supported (for example by this backend).

Unknown = 2

An 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.