Skip to content

Exceptions

CannotResolveParameterServiceFromImplementationFactoryError

Bases: WirioError

The exception that is thrown when a service for a parameter of an implementation factory cannot be resolved.

CannotResolveServiceError

Bases: WirioError

The exception that is thrown when a service cannot be resolved.

CannotResolveServiceFromEndpointError

Bases: WirioError

The exception that is thrown when a service for a parameter of an endpoint cannot be resolved.

CircularDependencyError

Bases: WirioError

The exception that is thrown when a circular dependency is detected.

DirectScopedResolvedFromRootError

Bases: WirioError

The exception that is thrown when a scoped service is resolved directly from the root provider.

InvalidServiceDescriptorError

Bases: WirioError

The exception that is thrown when a service descriptor is invalid.

InvalidServiceKeyTypeError

Bases: WirioError

The exception that is thrown when the type of the key used for lookup doesn't match the type in the constructor parameter with the ServiceKey annotation metadata.

KeyedServiceAnyKeyUsedToResolveServiceError

Bases: WirioError

The exception that is thrown when KeyedService.AnyKey is used to resolve a single service.

NoKeyedServiceRegisteredError

Bases: WirioError

The exception that is thrown when no keyed service is registered for a given type and key.

NoKeyedSingletonServiceRegisteredError

Bases: WirioError

The exception that is thrown when no keyed singleton service is registered for a given type and key.

NoServiceRegisteredError

Bases: WirioError

The exception that is thrown when no service is registered for a given type.

NoSingletonServiceRegisteredError

Bases: WirioError

The exception that is thrown when no singleton service is registered for a given type.

NonKeyedDescriptorMisuseError

Bases: WirioError

The exception that is thrown when a service descriptor is not keyed.

ObjectDisposedError

Bases: WirioError

The exception that is thrown when an operation is performed on a disposed object.

ScopedInSingletonError

Bases: WirioError

The exception that is thrown when a scoped service is resolved from a singleton.

ScopedResolvedFromRootError

Bases: WirioError

The exception that is thrown when a scoped service is resolved from the root provider.

ServiceDescriptorDoesNotExistError

Bases: WirioError

The exception that is thrown when a requested service descriptor doesn't exist.

WirioError

Bases: Exception

Base exception for Wirio Dependency Injection.