Interface SecretError

An error from a secret operation, carrying a machine-readable code.

interface SecretError {
    code:
        | "cancelled"
        | "invalid-params"
        | "forbidden"
        | "unknown"
        | "auth-required"
        | "not-found";
    message: string;
    name: string;
    stack?: string;
}

Hierarchy

  • Error
    • SecretError

Properties

Properties

code:
    | "cancelled"
    | "invalid-params"
    | "forbidden"
    | "unknown"
    | "auth-required"
    | "not-found"
message: string
name: string
stack?: string