IMP logo
IMP Reference Guide  2.6.2
The Integrative Modeling Platform
exception.h File Reference

Exception definitions and assertions. More...

#include <IMP/kernel_config.h>
#include "compiler_macros.h"
#include "enums.h"
#include "nullptr.h"
#include "internal/base_static.h"
#include <string>
#include <stdexcept>
+ Include dependency graph for exception.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IMP::EventException
 An exception that signifies some event occurred. More...
 
class  IMP::Exception
 The general base class for IMP exceptions. More...
 
class  IMP::IndexException
 An exception for a request for an invalid member of a container. More...
 
struct  IMP::InternalException
 A general exception for an internal error in IMP. More...
 
class  IMP::IOException
 An input/output exception. More...
 
class  IMP::ModelException
 An exception which is thrown when the Model has attributes with invalid values. More...
 
class  IMP::TypeException
 An exception for an invalid type being passed to IMP. More...
 
class  IMP::UsageException
 An exception for an invalid usage of IMP. More...
 
class  IMP::ValueException
 An exception for an invalid value being passed to IMP. More...
 

Namespaces

 IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
 

Error checking and reporting

By default IMP performs a variety of runtime error checks. These can be controlled using the IMP::set_check_level function. Call IMP::set_check_level with IMP::NONE to disable all checks when you are performing your optimization as opposed to testing your code. Make sure you run your code with the level set to at least USAGE before running your final optimization to make sure that IMP is used correctly.

Error handling is provided by IMP/exception.h,

Use the gdbinit file provided in tools to automatically have gdb break when IMP errors are detected.

void IMP::set_check_level (CheckLevel tf)
 Control runtime checks in the code. More...
 
CheckLevel IMP::get_check_level ()
 Get the current audit mode. More...
 
void IMP::handle_error (const char *msg)
 

Detailed Description

Exception definitions and assertions.

Copyright 2007-2016 IMP Inventors. All rights reserved.

Definition in file exception.h.