rocket_failure
Semantic error handling for rocket applications.
To enable this crate in your server add this line to your Cargo.toml
:
= { ="0.1", = ["with-rocket"] }
extern crate rocket;
extern crate rocket_failure;
use *;
use fs;
You can run this example with:
cargo +nightly run --example fileserver --features=with-rocket
With you want to use the ApiResult<T>
type in your api client to consume the
api, omit the with-rocket
feature:
= "0.1"
License
rocket_failure is licensed under either of the following, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)