IMP  2.0.1
The Integrative Modeling Platform
base/exception.h File Reference

Exception definitions and assertions. More...

#include <IMP/base/base_config.h>
#include "random.h"
#include "enums.h"
#include <IMP/base/nullptr.h>
#include "internal/static.h"
#include <boost/static_assert.hpp>
#include <boost/type_traits.hpp>
#include <boost/random/uniform_real.hpp>
#include <cassert>
#include <string>
#include <iostream>
#include <new>
#include <sstream>
#include <stdexcept>
+ Include dependency graph for base/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 intenal error in IMP. More...
 
class  IMP::base::IOException
 An input/output exception. More...
 
class  IMP::base::ModelException
 An exception which is thrown when the 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

namespace  IMP
 All IMP::kernel code is brought into the IMP namespace.
 
namespace  IMP::base
 See IMP.base Overview for more information.
 

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::base::set_check_level (CheckLevel tf)
 Control runtime checks in the code. More...
 
CheckLevel IMP::base::get_check_level ()
 Get the current audit mode.
 
void IMP::base::handle_error (const char *msg)
 

Detailed Description

Copyright 2007-2013 IMP Inventors. All rights reserved.

Definition in file base/exception.h.