An exception which is thrown when the Model has attributes with invalid values.
It may be OK to catch an IMP ModelException, when, for example, the catcher can simply re-randomize the optimized coordinates and restart the optimization. Sampling protocols, such as IMP::core::MCCGSampler, tend to do this.
Examples: rigid collisions
Inheritance diagram for IMP::base::ModelException:Public Member Functions | |
| ModelException (const char *t) | |
| Create exception with an error message. | |
Public Member Functions inherited from IMP::base::Exception | |
| Exception (const char *message) | |
| const char * | what () const throw () |
| IMP::base::ModelException::ModelException | ( | const char * | t | ) |
Create exception with an error message.