9 #ifndef IMPKERNEL_EXCEPTION_H
10 #define IMPKERNEL_EXCEPTION_H
12 #include <IMP/kernel_config.h>
16 #include "internal/base_static.h"
20 IMPKERNEL_BEGIN_NAMESPACE
23 typedef std::runtime_error ExceptionBase;
50 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
51 : public std::runtime_error
55 #if defined(SWIG) || defined(IMP_DOXYGEN)
56 const char *what()
const IMP_NOEXCEPT;
58 IMP_CXX11_DEFAULT_COPY_CONSTRUCTOR(
Exception);
65 #if !defined(SWIG) && !defined(IMP_DOXYGEN) && !IMP_KERNEL_HAS_LOG4CXX
66 IMPKERNELEXPORT std::string get_context_message();
75 internal::check_level = std::min<CheckLevel>(tf,
CheckLevel(IMP_HAS_CHECKS));
103 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
104 : public std::runtime_error
109 : std::runtime_error(msg) {}
124 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
125 : public std::runtime_error
213 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.
Provide a nullptr keyword analog.
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.