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::ServiceNotFoundException, sb::di::ServiceRegisterException

Public Functions

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

Public Functions

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

Public Functions

explicit ServiceRegisterException(TypeId typeId, std::string_view reason)
struct CannotMoveOutServiceException : public sb::di::InjectorException

Public Functions

CannotMoveOutServiceException(TypeId typeId, std::string_view reason)
struct CannotReleaseServiceException : public sb::di::InjectorException

Public Functions

CannotReleaseServiceException(TypeId typeId, std::string_view reason)
struct ServiceNotFoundException : public sb::di::InjectorException

Public Functions

ServiceNotFoundException(TypeId typeId, std::string_view reason)
struct InvalidServiceException : public sb::di::InjectorException

Public Functions

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

Public Functions

explicit CircularDependencyException(TypeId typeId)