Error

Type Alias Error 

Source
pub type Error = ApiError;
Expand description

Error type for Enso API operations

Aliased Type§

pub enum Error {
    Http(Error),
    HttpBuild(HttpError),
    Json(Error),
    Api {
        status: u16,
        message: String,
    },
    RateLimited {
        retry_after: Option<u64>,
    },
    ServerError {
        status: u16,
        message: String,
    },
    Url(ParseError),
    Domain(NoDomainError),
}

Variants§

§

Http(Error)

HTTP request error

§

HttpBuild(HttpError)

HTTP client build error

§

Json(Error)

JSON parsing error

§

Api

API returned an error response (4xx, excluding 429)

Fields

§status: u16

HTTP status code

§message: String

Error message from API

§

RateLimited

Rate limit exceeded (429)

Fields

§retry_after: Option<u64>

Seconds to wait before retrying

§

ServerError

Server error (5xx)

Fields

§status: u16

HTTP status code

§message: String

Error message

§

Url(ParseError)

URL parsing error

§

Domain(NoDomainError)

Domain-specific error