9 #ifndef IMPKERNEL_EXCEPTION_H 
   10 #define IMPKERNEL_EXCEPTION_H 
   12 #include <IMP/kernel_config.h> 
   15 #include "internal/static.h" 
   19 IMPKERNEL_BEGIN_NAMESPACE
 
   22 typedef std::runtime_error ExceptionBase;
 
   49 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
 
   50     : public std::runtime_error
 
   54 #if defined(SWIG) || defined(IMP_DOXYGEN) 
   55   const char *what() 
const noexcept;
 
   57   IMP_CXX11_DEFAULT_COPY_CONSTRUCTOR(
Exception);
 
   64 #if !defined(SWIG) && !defined(IMP_DOXYGEN) && !IMP_KERNEL_HAS_LOG4CXX 
   65 IMPKERNELEXPORT std::string get_context_message();
 
   74   internal::check_level = std::min<CheckLevel>(tf, 
CheckLevel(IMP_HAS_CHECKS));
 
  102 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
 
  103     : public std::runtime_error
 
  108       : std::runtime_error(msg) {}
 
  123 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
 
  124     : public std::runtime_error
 
  212 IMPKERNEL_END_NAMESPACE
 
IndexException(const char *t)
Create exception with an error message. 
 
CheckLevel get_check_level()
Get the current audit mode. 
 
A general exception for an internal error in IMP. 
 
An exception for an invalid type being passed to IMP. 
 
An exception that signifies some event occurred. 
 
An exception for an invalid usage of IMP. 
 
ModelException(const char *t)
Create exception with an error message. 
 
An input/output exception. 
 
An exception for a request for an invalid member of a container. 
 
Basic enumeration types used by IMP. 
 
CheckLevel
Specify the level of runtime checks performed. 
 
EventException(const char *t="")
Create exception with an error message. 
 
The general base class for IMP exceptions. 
 
Various compiler workarounds. 
 
void handle_error(const char *msg)
 
An exception which is thrown when the Model has attributes with invalid values. 
 
An exception for an invalid value being passed to IMP. 
 
void set_check_level(CheckLevel tf)
Control runtime checks in the code.