Enum fractal_api::error::Error
[−]
[src]
pub enum Error {
Hyper(HyperError),
IO(Error),
FromDTO(FromDTOError),
JSONDecode(DecoderError),
Forbidden(String),
BadRequest(String),
Client(String),
NotFound(String),
Server(String),
InvalidTokenType,
InvalidScope,
InvalidSecret,
Registration,
Transaction,
ConfirmConnection,
}The error type of the API.
Variants
Hyper(HyperError)Hyper request error.
IO(Error)IO error.
FromDTO(FromDTOError)Error converting value from DTO object.
JSONDecode(DecoderError)JSON decode error.
Forbidden(String)Forbidden.
BadRequest(String)Bad request
Client(String)Error Logging in
NotFound(String)Not found
Server(String)Internal server error.
InvalidTokenTypeThe token type is not valid.
InvalidScopeThe scope is not valid.
InvalidSecretThe secret is not valid.
RegistrationRegistration error.
TransactionAn error occurred generating a transaction.
ConfirmConnectionConnection 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.