Exceptions#

struct InjectorException : public std::runtime_error#

Base class for all injector exceptions.

Subclassed by sb::di::CannotMoveOutServiceException, sb::di::CannotReleaseServiceException, sb::di::CircularDependencyException, sb::di::InvalidServiceException, sb::di::NullPointerException, sb::di::ServiceAliasMismatchException, sb::di::ServiceAlreadyRegisteredException, sb::di::ServiceLifeTimeMismatchException, sb::di::ServiceNotFoundException

Public Functions

explicit InjectorException(const std::string &error)#
struct NullPointerException : public sb::di::InjectorException#

Public Functions

explicit NullPointerException(const std::string &why)#
struct InvalidServiceException : public sb::di::InjectorException#

Public Functions

explicit InvalidServiceException()#
explicit InvalidServiceException(TypeId typeId)#
struct CannotReleaseServiceException : public sb::di::InjectorException#

Public Functions

CannotReleaseServiceException(TypeId typeId, const std::string &reason)#
struct CannotMoveOutServiceException : public sb::di::InjectorException#

Public Functions

CannotMoveOutServiceException(TypeId typeId, const std::string &reason)#
struct ServiceNotFoundException : public sb::di::InjectorException#

Public Functions

ServiceNotFoundException(TypeId typeIndex, const std::string &reason)#
struct ServiceAlreadyRegisteredException : public sb::di::InjectorException#

Public Functions

explicit ServiceAlreadyRegisteredException(TypeId typeIndex)#

Warning

doxygenstruct: Cannot find class “sb::di::ServiceBaseTypeMismatchException” in doxygen xml output for project “7bitDI” from directory: /home/docs/checkouts/readthedocs.org/user_builds/7bitdi/checkouts/v3.1.0/Docs/../build/docs/doxygen/xml

struct ServiceLifeTimeMismatchException : public sb::di::InjectorException#

Public Functions

ServiceLifeTimeMismatchException(TypeId typeIndex, TypeId interface)#
struct CircularDependencyException : public sb::di::InjectorException#

Public Functions

explicit CircularDependencyException(TypeId typeIndex)#