Skip to main content

BetterStackError

Type Alias BetterStackError 

Source
pub type BetterStackError = Error;
Expand description

Service-prefixed alias of Error.

Aliased Type§

pub enum BetterStackError {
    Config(Box<ErrorContext>),
    Authentication(Box<ErrorContext>),
    PermissionDenied(Box<ErrorContext>),
    NotFound(Box<ErrorContext>),
    Conflict(Box<ErrorContext>),
    RateLimited(Box<ErrorContext>),
    Validation(Box<ErrorContext>),
    Unavailable(Box<ErrorContext>),
    Timeout(Box<ErrorContext>),
    Unsupported(Box<ErrorContext>),
    Cancelled(Box<ErrorContext>),
}

Variants§

§

Config(Box<ErrorContext>)

CONFIG: invalid or missing configuration.

§

Authentication(Box<ErrorContext>)

AUTHENTICATION: HTTP 401.

§

PermissionDenied(Box<ErrorContext>)

PERMISSION_DENIED: HTTP 403.

§

NotFound(Box<ErrorContext>)

NOT_FOUND: HTTP 404 or a missing record.

§

Conflict(Box<ErrorContext>)

CONFLICT: HTTP 409, 412 or a CAS mismatch.

§

RateLimited(Box<ErrorContext>)

RATE_LIMITED: HTTP 429 (see Error::retry_after).

§

Validation(Box<ErrorContext>)

VALIDATION: rejected input.

§

Unavailable(Box<ErrorContext>)

UNAVAILABLE: network error or HTTP 500/502/503.

§

Timeout(Box<ErrorContext>)

TIMEOUT: a deadline was exceeded.

§

Unsupported(Box<ErrorContext>)

UNSUPPORTED: capability not offered by the service.

§

Cancelled(Box<ErrorContext>)

CANCELLED: the caller cancelled.