Enum fractal_api::error::Error
[−]
[src]
pub enum Error { HyperError(HyperError), IO(Error), FromDTOError(FromDTOError), JSONDecodeError(DecoderError), Forbidden(String), BadRequest(String), ClientError(String), NotFound(String), ServerError(String), InvalidTokenType, InvalidScope, InvalidSecret, RegistrationError, TransactionError, ConfirmConnectionError, }
The error type of the API.
Variants
HyperError(HyperError)
Hyper request error.
IO(Error)
IO error.
FromDTOError(FromDTOError)
Error converting value from DTO object.
JSONDecodeError(DecoderError)
JSON decode error.
Forbidden(String)
Forbidden.
BadRequest(String)
Bad request
ClientError(String)
Error Logging in
NotFound(String)
Not found
ServerError(String)
Internal server error.
InvalidTokenType
The token type is not valid.
InvalidScope
The scope is not valid.
InvalidSecret
The secret is not valid.
RegistrationError
Registration error.
TransactionError
An error occurred generating a transaction.
ConfirmConnectionError
Connection confirmation error.
Trait Implementations
impl Debug for Error
[src]
impl From<HyperError> for Error
[src]
fn from(error: HyperError) -> Error
Performs the conversion.
impl From<Error> for Error
[src]
impl From<DecoderError> for Error
[src]
fn from(error: DecoderError) -> Error
Performs the conversion.
impl From<FromDTOError> for Error
[src]
fn from(error: FromDTOError) -> Error
Performs the conversion.