9 #ifndef IMPBASE_EXCEPTION_H
10 #define IMPBASE_EXCEPTION_H
12 #include <IMP/base/base_config.h>
16 #include "internal/static.h"
20 IMPBASE_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_BASE_HAS_LOG4CXX
66 IMPBASEEXPORT 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
203 IMPBASE_END_NAMESPACE
An exception for a request for an invalid member of a container.
CheckLevel
Specify the level of runtime checks performed.
A general exception for an internal error in IMP.
An input/output exception.
IndexException(const char *t)
Create exception with an error message.
An exception that signifies some event occurred.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
The general base class for IMP exceptions.
An exception which is thrown when the kernel::Model has attributes with invalid values.
EventException(const char *t="")
Create exception with an error message.
Provide a nullptr keyword analog.
ModelException(const char *t)
Create exception with an error message.
void handle_error(const char *msg)
Various compiler workarounds.
CheckLevel get_check_level()
Get the current audit mode.
An exception for an invalid usage of IMP.
An exception for an invalid value being passed to IMP.