Enum openstack::ApiError [] [src]

pub enum ApiError {
    EndpointNotFound(String),
    InvalidInput(String),
    InvalidUrl(UrlError),
    HttpError(StatusCodeResponse),
    ProtocolError(HttpClientError),
    InvalidResponse(String),
    InvalidApiVersion {
        value: String,
        message: String,
    },
    UnsupportedApiVersion {
        requested: ApiVersionRequest,
        minimum: Option<ApiVersion>,
        maximum: Option<ApiVersion>,
    },
}

Error from an OpenStack API call.

Variants

Requested service endpoint was not found.

Contains the failed endpoint name.

Invalid value passed to one of paremeters.

Contains the error message.

Invalid URL.

Generic HTTP error.

Protocol-level error reported by underlying HTTP library.

Response received from the server is malformed.

Contains the error message.

Malformed API version.

Fields of InvalidApiVersion

Unsupported API version.

Fields of UnsupportedApiVersion

Trait Implementations

impl Debug for ApiError
[src]

[src]

Formats the value using the given formatter.

impl Display for ApiError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for ApiError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl From<HttpClientError> for ApiError
[src]

[src]

Performs the conversion.

impl From<UrlError> for ApiError
[src]

[src]

Performs the conversion.