pub enum Error {
FormatError {
error: Error,
},
DeserializationError {
error: Error,
text: String,
},
SerializeQueryError {
error: Error,
},
SerializeBodyError {
error: Error,
},
HttpError {
error: Error,
},
NetworkError {
error: Error,
},
RequestNotOk {
status: u32,
body: String,
},
}
Expand description
Represents the errors possible to fall out from Burgundy.
Variants§
FormatError
DeserializationError
Fields
SerializeQueryError
SerializeBodyError
HttpError
NetworkError
RequestNotOk
For HTTP requests which do not return 200.
Trait Implementations§
source§impl Fail for Error
impl Fail for Error
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more