Enum openstack::ApiError
[−]
[src]
pub enum ApiError {
EndpointNotFound(String),
InvalidInput(String),
InvalidUrl(UrlError),
HttpError(StatusCode, Response),
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
EndpointNotFound(String)Requested service endpoint was not found.
Contains the failed endpoint name.
InvalidInput(String)Invalid value passed to one of paremeters.
Contains the error message.
InvalidUrl(UrlError)Invalid URL.
HttpError(StatusCode, Response)Generic HTTP error.
ProtocolError(HttpClientError)Protocol-level error reported by underlying HTTP library.
InvalidResponse(String)Response received from the server is malformed.
Contains the error message.
InvalidApiVersionMalformed API version.
Fields of InvalidApiVersion
value: String | |
message: String |
UnsupportedApiVersionUnsupported API version.
Fields of UnsupportedApiVersion
requested: ApiVersionRequest | |
minimum: Option<ApiVersion> | |
maximum: Option<ApiVersion> |
Trait Implementations
impl Debug for ApiError[src]
impl Display for ApiError[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Error for ApiError[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>[src]
The lower-level cause of this error, if any. Read more
impl From<HttpClientError> for ApiError[src]
fn from(value: HttpClientError) -> ApiError[src]
Performs the conversion.