Struct libwgetj::LibwgetjError [] [src]

pub struct LibwgetjError {
    // some 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

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 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 Debug for LibwgetjError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for LibwgetjError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

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.