Exceptions#

struct InjectorException : public std::runtime_error#

Base class for all injector exceptions.

Subclassed by sb::di::CannotMoveOutServiceException, sb::di::CircularDependencyException, sb::di::ForbiddenServiceFactoryException, sb::di::InvalidServiceException, sb::di::NullPointnerException, sb::di::ServiceAlreadyRegisteredException, sb::di::ServiceBaseTypeMissmatchException, sb::di::ServiceLifeTimeMissmatchException, sb::di::ServiceNotFoundException

Public Functions

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

Public Functions

NullPointnerException(const std::string &why)#
struct ForbiddenServiceFactoryException : public sb::di::InjectorException#

Public Functions

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

Public Functions

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

Public Functions

InvalidServiceException(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

ServiceAlreadyRegisteredException(TypeId typeIndex)#
struct ServiceBaseTypeMissmatchException : public sb::di::InjectorException#

Public Functions

ServiceBaseTypeMissmatchException(TypeId typeIndex, TypeId interface)#
struct ServiceLifeTimeMissmatchException : public sb::di::InjectorException#

Public Functions

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

Public Functions

CircularDependencyException(TypeId typeIndex)#