aboutsummaryrefslogtreecommitdiff
path: root/src/errors/injectable.rs
blob: 63afa11bc877f54fa4b73b2415280ad0188eb046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Error types for structs implementing Injectable.

use core::fmt;
use std::fmt::{Display, Formatter};

use error_stack::Context;

/// Error for when a injectable struct fails to be resolved.
#[derive(Debug)]
pub struct ResolveError;

impl Display for ResolveError
{
    fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result
    {
        fmt.write_str("Failed to resolve injectable struct")
    }
}

impl Context for ResolveError {}