17 #ifndef COM_BORA_SOFTWARE__BALAU_EXCEPTION__INJECTOR_EXCEPTIONS 18 #define COM_BORA_SOFTWARE__BALAU_EXCEPTION__INJECTOR_EXCEPTIONS 20 #include <Balau/Application/Impl/BindingKey.hpp> 37 public:
const Impl::BindingKey bindingKey;
41 const std::string & st,
42 const std::string & name,
43 const Impl::BindingKey & bindingKey_)
45 , bindingKey(bindingKey_.getType(), std::string(bindingKey_.getName())) {}
49 const std::string & st,
50 const std::string & name,
51 const std::string & str,
52 const Impl::BindingKey & bindingKey_)
54 , bindingKey(bindingKey_.getType(), std::string(bindingKey_.getName())) {}
58 return lhs.
message == rhs.
message && lhs.bindingKey == rhs.bindingKey;
67 const std::string & st,
68 const Impl::BindingKey & bindingKey_)
76 public:
NoBindingException(
const char * file,
int line,
const std::string & st,
const Impl::BindingKey & key_)
89 const std::string & st,
90 const Impl::BindingKey & dependentKey_,
91 const Impl::BindingKey & independentKey_)
92 :
BindingException(file, line, st,
"MissingDependency", ::
toString(independentKey_,
" is required by "), dependentKey_) {}
103 const std::string & st,
104 const Impl::BindingKey & bindingKey_)
114 const std::string & st,
115 const std::string & text)
116 :
BalauException(file, line, st,
"EnvironmentConfiguration", text) {}
121 #endif // COM_BORA_SOFTWARE__BALAU_EXCEPTION__INJECTOR_EXCEPTIONS bool operator==(const BalauException &lhs, const BalauException &rhs)
Base class comparison function for Balau exceptions.
Definition: BalauException.hpp:112
Thrown when no binding is found in the injector.
Definition: InjectorExceptions.hpp:86
All exception classes.
Definition: BalauException.hpp:50
Thrown when the supplied binding configuration has a cyclic dependency.
Definition: InjectorExceptions.hpp:28
Thrown when an attempt is made to create a shared pointer binding to the injector.
Definition: InjectorExceptions.hpp:100
Balau::U8String< AllocatorT > toString(const BalauException &e)
Base class toString<AllocatorT> function for Balau exceptions.
Definition: BalauException.hpp:122
const std::string message
The message.
Definition: BalauException.hpp:59
Thrown when there is an issue loading an environment property file.
Definition: InjectorExceptions.hpp:111
Base Balau exception classes.
Base class of all Balau exceptions.
Definition: BalauException.hpp:55
Thrown when an illegal injector binding configuration is attempted.
Definition: InjectorExceptions.hpp:64
Base class of binding exceptions.
Definition: InjectorExceptions.hpp:36
Thrown when no binding is found in the injector.
Definition: InjectorExceptions.hpp:75