[−][src]Crate solana_libra_failure_ext
A common error handling library for the Libra project.
Usage
// This crate must be imported as 'failure' in order to ensure the
// procedural derive macro for the Fail
trait can function properly.
failure = { path = "../common/failure_ext", package = "failure_ext" }
// Most of the types and macros you'll need can be found in the prelude.
use failure::prelude::*;
Re-exports
pub use failure::_core; |
pub use failure::Fail; |
Modules
prelude | Prelude module containing most commonly used types/macros this crate exports. |
Macros
bail | Exits a function early with an |
bail_err | Exits a function early with an |
ensure | Exits a function early with an |
format_err | Constructs an |
Structs
Backtrace | A |
Causes | A iterator over the causes of a |
Compat | A compatibility wrapper around an error type from this crate. |
Context | An error with context around it. |
Error | The |
SyncFailure | Wrapper for |
Traits
AsFail | The |
Fail | The |
ResultExt | Extension methods for |
Functions
err_msg | Constructs a |
Type Definitions
Result |