Enum fractal_api::error::Error
[−]
[src]
pub enum Error {
HyperError(HyperError),
IO(Error),
FromDTOError(FromDTOError),
JSONDecodeError(DecoderError),
ClientError(ResponseDTO),
Unauthorized,
ServerError,
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.
ClientError(ResponseDTO)Error Logging in
Unauthorized.
ServerErrorInternal server error.
InvalidTokenTypeThe token type is not valid.
InvalidScopeThe scope is not valid.
InvalidSecretThe secret is not valid.
RegistrationErrorRegistration error.
TransactionErrorAn error occurred generating a transaction.
ConfirmConnectionErrorConnection 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.