IMP  2.3.0
The Integrative Modeling Platform
exception.h File Reference

Exception definitions and assertions. More...

#include <IMP/base/base_config.h>
#include "compiler_macros.h"
#include "enums.h"
#include "nullptr.h"
#include "internal/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::base::EventException
 An exception that signifies some event occurred. More...
 
class  IMP::base::Exception
 The general base class for IMP exceptions. More...
 
class  IMP::base::IndexException
 An exception for a request for an invalid member of a container. More...
 
struct  IMP::base::InternalException
 A general exception for an internal error in IMP. More...
 
class  IMP::base::IOException
 An input/output exception. More...
 
class  IMP::base::ModelException
 An exception which is thrown when the kernel::Model has attributes with invalid values. More...
 
class  IMP::base::UsageException
 An exception for an invalid usage of IMP. More...
 
class  IMP::base::ValueException
 An exception for an invalid value being passed to IMP. More...
 

Namespaces

 IMP
 Synonym for IMP::kernel.
 
 IMP::base
 Low level functionality (logging, error handling, profiling, command line flags etc) that is used by all of IMP.
 

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/base/exception.h,

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

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

Detailed Description

Exception definitions and assertions.

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file exception.h.