gramods
PreConditionViolation.hh
1 
2 #ifndef GRAMODS_CORE_PRECONDITIONVIOLATION
3 #define GRAMODS_CORE_PRECONDITIONVIOLATION
4 
5 #include <gmCore/RuntimeException.hh>
6 
7 #include <string>
8 
9 BEGIN_NAMESPACE_GMCORE;
10 
17 
21  PreConditionViolation(std::string what)
22  : RuntimeException(what) {}
23 };
24 
25 END_NAMESPACE_GMCORE;
26 
27 #endif
Standard exception for violation of pre conditions in a call to a function or object.
Definition: PreConditionViolation.hh:16
PreConditionViolation(std::string what)
Creates an exception with a clarification message.
Definition: PreConditionViolation.hh:21
Standard exception for runtime problems and base type for more detailed problems.
Definition: RuntimeException.hh:15