graph_error/
lib.rs

1//! Various errors used to implement the Graph API and OAuth clients for the graph-rs project
2//! See the project on [GitHub](https://github.com/sreeise/graph-rs-sdk).
3#[macro_use]
4extern crate serde;
5
6mod authorization_failure;
7pub mod download;
8mod error;
9mod graph_failure;
10mod internal;
11pub mod io_error;
12mod webview_error;
13
14pub use authorization_failure::*;
15pub use error::*;
16pub use graph_failure::*;
17pub use internal::*;
18pub use webview_error::*;
19
20pub type GraphResult<T> = Result<T, GraphFailure>;
21pub type IdentityResult<T> = Result<T, AuthorizationFailure>;
22pub type AuthExecutionResult<T> = Result<T, AuthExecutionError>;
23pub type AuthTaskExecutionResult<T, R> = Result<T, AuthTaskExecutionError<R>>;
24pub type WebViewResult<T> = Result<T, WebViewError>;
25pub type DeviceCodeWebViewResult<T> = Result<T, WebViewDeviceCodeError>;