42 template <
typename exception_t,
typename T>
43 inline void enforce(
bool condition,
const T& arg1)
46 throw exception_t(arg1);
77 template <
typename T,
typename U>
89 template <
typename T,
typename U,
typename V>
void enforce(bool condition, const T &arg1)
Ensure that condition is true, otherwise throw an exception of the type exception_t.
Definition: enforce.hpp:43
Error class for exceptions, log message class.
BasicError< char > Error
Error class used for exceptions (std::string based)
Definition: error.hpp:323
ErrorCode
Complete list of all Exiv2 error codes.
Definition: error.hpp:191