pub enum ComponentError {
DependencyNotFound(String),
DowncastFailed(String),
CircularDependency(String),
ConfigurationError(String),
CreationError(String),
NotFound(String),
}Expand description
Error types specific to component operations
ComponentError represents various failure conditions that can occur during
component creation, dependency injection, and component lifecycle management.
§Examples
use verdure_core::error::component::ComponentError;
let error = ComponentError::DependencyNotFound("DatabaseService".to_string());
println!("{}", error); // Prints: "Dependency 'DatabaseService' not found"Variants§
DependencyNotFound(String)
A required dependency was not found in the container
DowncastFailed(String)
Failed to downcast a dependency to the expected type
CircularDependency(String)
A circular dependency was detected between components
ConfigurationError(String)
A configuration error occurred during component setup
CreationError(String)
Component creation failed for some reason
NotFound(String)
The requested component was not found
Trait Implementations§
Source§impl Debug for ComponentError
impl Debug for ComponentError
Source§impl Display for ComponentError
impl Display for ComponentError
Source§impl From<ComponentError> for ContainerError
impl From<ComponentError> for ContainerError
Source§fn from(err: ComponentError) -> Self
fn from(err: ComponentError) -> Self
Converts to this type from the input type.
Source§impl From<ContainerError> for ComponentError
impl From<ContainerError> for ComponentError
Source§fn from(err: ContainerError) -> Self
fn from(err: ContainerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComponentError
impl RefUnwindSafe for ComponentError
impl Send for ComponentError
impl Sync for ComponentError
impl Unpin for ComponentError
impl UnsafeUnpin for ComponentError
impl UnwindSafe for ComponentError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more