valkyrie_runtime/errors/mod.rs
1use std::fmt::{Debug, Formatter};
2use std::error::Error;
3use std::fmt::Display;
4
5mod display;
6mod convert;
7
8/// The result type of this crate.
9pub type Result<T> = std::result::Result<T, ExampleError>;
10
11/// A boxed error kind, wrapping an [ExampleErrorKind].
12#[derive(Clone)]
13pub struct ExampleError {
14 kind: Box<ExampleErrorKind>,
15}
16
17/// The kind of [ExampleError].
18#[derive(Debug, Copy, Clone)]
19pub enum ExampleErrorKind {
20 /// An unknown error.
21 UnknownError
22}
23
24