Enum he_di::Error [] [src]

pub enum Error {
    ExtractError(String),
    ParseError(String),
    ResolveError(String),
    RegistrationError(Error),
    Basic(String),
}

This type represents all possible errors that can occur when registering or resolving components or when generating the code to do so.

Variants

Error generated during procedural macro #[derive(Component)]'s code generation.

Error generated during procedural macro #[derive(Component)]'s code generation.

Error possibly received when calling any of the resolve method of Container.

Error when calling ContainerBuilder::build().

Simple, unqualified error. Not used as part of this crate.

Trait Implementations

impl Display for Error
[src]

Returns the error's description() prefixed by the error's type. For RegistrationError, list the message of each the errors encountered (i.e. the 3rd String tuple entry).

impl Error for Error
[src]

impl From<Error> for Error
[src]

Convert a ValidatorError into a RegistrationError

impl Debug for Error
[src]

Same as Display.

Formats the value using the given formatter.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more