pub enum NidusError {
Show 18 variants
MissingProvider {
type_name: &'static str,
},
DuplicateProvider {
type_name: &'static str,
},
RequestScopeRequired {
type_name: &'static str,
},
CircularProviderResolution {
type_name: &'static str,
},
DuplicateModule {
module: String,
},
DuplicateModuleProvider {
module: String,
provider: String,
},
DuplicateModuleController {
module: String,
controller: String,
},
ModuleProviderControllerConflict {
module: String,
type_name: String,
},
DuplicateModuleImport {
module: String,
import: String,
},
DuplicateModuleExport {
module: String,
provider: String,
},
ProviderFactory {
type_name: &'static str,
source: Box<NidusError>,
},
MissingModuleImport {
module: String,
import: String,
},
CircularModuleImport {
cycle: Vec<String>,
},
MissingProviderExport {
module: String,
provider: String,
},
ProviderVisibilityConflict {
module: String,
provider: String,
import: String,
},
AmbiguousProvider {
module: String,
provider: String,
imports: Vec<String>,
},
LifecycleStartup {
source: Box<NidusError>,
rollback_errors: Vec<NidusError>,
},
ApplicationBuild {
message: String,
},
}Expand description
Errors emitted by Nidus core primitives.
Variants§
MissingProvider
A dependency was requested but no provider exists for its concrete type.
DuplicateProvider
A provider was registered more than once for the same concrete type.
RequestScopeRequired
A request-scoped provider was resolved outside an explicit request scope.
CircularProviderResolution
A provider factory recursively requested a provider already being built.
DuplicateModule
A module was registered more than once with the same name.
DuplicateModuleProvider
A module declares the same provider more than once.
Fields
DuplicateModuleController
A module declares the same controller more than once.
Fields
ModuleProviderControllerConflict
A module declares the same type name as both a provider and a controller.
Fields
DuplicateModuleImport
A module imports the same module more than once.
Fields
DuplicateModuleExport
A module exports the same provider more than once.
Fields
ProviderFactory
A registered provider factory returned an error.
Fields
source: Box<NidusError>Underlying framework error.
MissingModuleImport
A module imports another module that is not present in the graph.
CircularModuleImport
A circular module import chain was detected.
MissingProviderExport
A module exports a provider it does not own.
Fields
ProviderVisibilityConflict
A module declares a local provider that is also exported by one of its imports.
Fields
AmbiguousProvider
A module can see multiple providers with the same name through imports.
Fields
LifecycleStartup
A lifecycle startup hook failed after one or more hooks may have started.
Fields
source: Box<NidusError>Original startup failure.
rollback_errors: Vec<NidusError>Shutdown failures encountered while rolling back already-started hooks.
ApplicationBuild
Application composition failed during high-level bootstrap.
Trait Implementations§
Source§impl Debug for NidusError
impl Debug for NidusError
Source§impl Display for NidusError
impl Display for NidusError
Source§impl Error for NidusError
impl Error for NidusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()