Module hub_sdk::errors [] [src]

Geeny Hub SDK Error Types

These error types are generated by Error Chain. These types can be combined with other crates using error_chain in the following way:

#[macro_use]
extern crate error_chain;
extern crate hub_sdk;

mod your_error {
    use hub_sdk::errors;

    error_chain!{
        links {
            GeenyHub(errors::Error, errors::ErrorKind);
        }
    }
}

fn main() {}

Additionally, Error implements the Responder trait from Rocket, and will produce a JSON return value with error code 400 if returned from a route handler in Rocket.

Structs

Error

The Error type.

Enums

ErrorKind

The kind of an error.

Traits

ResultExt

Additional methods for Result, for easy interaction with this crate.

Type Definitions

Result

Convenient wrapper around std::Result.