1 #ifndef SAUCE_EXCEPTIONS_H_
2 #define SAUCE_EXCEPTIONS_H_
15 std::runtime_error(message) {}
24 Exception(
"Request for unbound interface " + name +
".") {}
30 template<
typename Dependency>
48 template<
typename Dependency>
60 Exception(
"Request for unbound interface.") {}
66 template<
typename Dependency>
84 template<
typename Scope>
102 template<
typename Scope>
114 Exception(
"Can't exit SingletonScope") {}
119 #endif // SAUCE_EXCEPTIONS_H_
Thrown when a binding hasn't been completely specified.
Definition: exceptions.h:39
Thrown when a binding hasn't been completely specified for the given interface.
Definition: exceptions.h:49
Thrown when re-entering the given scope, which is already open.
Definition: exceptions.h:103
Thrown when a provision is requested outside of its given, bound scope.
Definition: exceptions.h:85
Thrown when a dependency cycle is found.
Definition: exceptions.h:57
Thrown when a provision is requested outside of its bound scope.
Definition: exceptions.h:75
Thrown when a dependency cycle is found for the given interface.
Definition: exceptions.h:67
Thrown when re-entering a scope that is already open.
Definition: exceptions.h:93
Thrown when exiting the singleton scope.
Definition: exceptions.h:111
Base class for all sauce exceptions.
Definition: exceptions.h:12
Thrown when a binding cannot be found.
Definition: exceptions.h:21
Thrown when a binding cannot be found for the given interface.
Definition: exceptions.h:31