gramods
RuntimeException.hh
1 
2 #ifndef GRAMODS_CORE_RUNTIMEEXCEPTION
3 #define GRAMODS_CORE_RUNTIMEEXCEPTION
4 
5 #include <gmCore/config.hh>
6 
7 #include <string>
8 
9 BEGIN_NAMESPACE_GMCORE;
10 
16 
20  RuntimeException(std::string what)
21  : what(what) {}
22 
26  const std::string what;
27 };
28 
29 END_NAMESPACE_GMCORE;
30 
31 #endif
Standard exception for runtime problems and base type for more detailed problems.
Definition: RuntimeException.hh:15
const std::string what
A message with information about how preconditions were violated.
Definition: RuntimeException.hh:26
RuntimeException(std::string what)
Creates an exception with a clarification message.
Definition: RuntimeException.hh:20