Root: LLMException
public class LLMException extends RuntimeException {
private final ErrorKind kind;
public enum ErrorKind { AUTH, QUOTA, INVALID_REQUEST, CONTEXT_TOO_LARGE, TRANSIENT, TIMEOUT, MODEL_ERROR }
}Advertisement
AUTH — 401/403
Bad or missing credentials. Fatal. Runtime does not retry. Surface as a config error.
Advertisement
QUOTA — 429
Rate limit or daily quota exhausted. Runtime retries with exponential backoff. Alert if sustained.