pub enum Error {
HTTPError,
IOError(Error),
JSONError(Error),
JSONPathError,
InvalidParameter(String),
}
Expand description
Wikipedia failed to fetch some information
Variants§
HTTPError
Some error communicating with the server
IOError(Error)
Error reading response
JSONError(Error)
Failed to parse JSON response
JSONPathError
Missing required keys in the JSON response
InvalidParameter(String)
One of the parameters provided (identified by String
) is invalid
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more