1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # Aleo SDK — custom error types.
//!
//! Consolidates all SDK errors into a single [`AleoError`] enum with
//! [`thiserror`](https://docs.rs/thiserror) for ergonomic `Display` and `Error` derives.
//!
//! ## Usage
//!
//! ```no_run
//! use aleo_rust_sdk::AleoError;
//!
//! fn example() -> Result<(), AleoError> {
//! Err(AleoError::Custom("something went wrong".into()))
//! }
//! ```
use Error;
/// Unified error type for the Aleo Rust SDK.