Struct libwgetj::LibwgetjError
[−]
[src]
pub struct LibwgetjError { /* fields omitted */ }
An error thrown by the libwgetj library.
Methods
impl LibwgetjError
[src]
fn new<T: Display>(desc: &str, detail: T) -> LibwgetjError where
T: Debug,
T: Debug,
Create a new LibwgetjError with the given description and detail.
Examples
use libwgetj::LibwgetjError; let err = LibwgetjError::new("Download Failure", "Unable to connect to server!");
Trait Implementations
impl Debug for LibwgetjError
[src]
impl PartialEq for LibwgetjError
[src]
fn eq(&self, __arg_0: &LibwgetjError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LibwgetjError) -> bool
This method tests for !=
.
impl Display for LibwgetjError
[src]
impl Error for LibwgetjError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<Error> for LibwgetjError
[src]
fn from(e: Error) -> LibwgetjError
Performs the conversion.