9 #ifndef IMPBASE_EXCEPTION_H
10 #define IMPBASE_EXCEPTION_H
12 #include <IMP/base/base_config.h>
17 #include "internal/static.h"
18 #include <boost/static_assert.hpp>
19 #include <boost/type_traits.hpp>
20 #include <boost/random/uniform_real.hpp>
28 IMPBASE_BEGIN_NAMESPACE
31 typedef std::runtime_error ExceptionBase;
58 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
59 : public std::runtime_error
63 #if defined(SWIG) || defined(IMP_DOXYGEN)
64 const char *what()
const IMP_NOEXCEPT;
66 IMP_CXX11_DEFAULT_COPY_CONSTRUCTOR(
Exception);
73 #if !defined(SWIG) && !defined(IMP_DOXYGEN) && !IMP_BASE_HAS_LOG4CXX
74 IMPBASEEXPORT std::string get_context_message();
83 internal::check_level = std::min<int>(tf, IMP_HAS_CHECKS);
111 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
112 : public std::runtime_error
117 : std::runtime_error(msg) {}
132 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
133 : public std::runtime_error
212 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 intenal 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.
Random number generators used by IMP.
An exception which is thrown when the kernel::Model has attributes with invalid values.
Various compiler workarounds.
Provide a nullptr keyword analog.
EventException(const char *t="")
Create exception with an error message.
ModelException(const char *t)
Create exception with an error message.
void handle_error(const char *msg)
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.