Struct libwgetj::LibwgetjError [] [src]

pub struct LibwgetjError {
    // some fields omitted
}

An error thrown by the libwgetj library.

Methods

impl LibwgetjError
[src]

fn new<T>(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 From<Error> for LibwgetjError
[src]

fn from(e: Error) -> LibwgetjError

Performs the conversion.