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
ExtractError(String)
Error generated during procedural macro #[derive(Component)]
's code generation.
ParseError(String)
Error generated during procedural macro #[derive(Component)]
's code generation.
ResolveError(String)
Error possibly received when calling any of the resolve
method of Container.
RegistrationError(Error)
Error when calling ContainerBuilder::build().
Basic(String)
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]
fn description(&self) -> &str
fn cause(&self) -> Option<&Error>
impl From<Error> for Error
[src]
Convert a ValidatorError into a RegistrationError
impl Debug for Error
[src]
Same as Display.
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more