Gromacs  5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::SimulationInstabilityError Class Reference

#include <gromacs/utility/exceptions.h>

+ Inheritance diagram for gmx::SimulationInstabilityError:
+ Collaboration diagram for gmx::SimulationInstabilityError:

Description

Exception class for simulation instabilities.

Public Member Functions

 SimulationInstabilityError (const ExceptionInitializer &details)
 Creates an exception object with the provided initializer/reason. More...
 
virtual int errorCode () const
 Returns the error code corresponding to the exception type.
 
- Public Member Functions inherited from gmx::GromacsException
virtual const char * what () const throw ()
 Returns the reason string for the exception. More...
 
void prependContext (const std::string &context)
 Adds context information to this exception. More...
 

Additional Inherited Members

- Protected Member Functions inherited from gmx::GromacsException
 GromacsException (const ExceptionInitializer &details)
 Creates an exception object with the provided initializer/reason. More...
 

Constructor & Destructor Documentation

gmx::SimulationInstabilityError::SimulationInstabilityError ( const ExceptionInitializer details)
inlineexplicit

Creates an exception object with the provided initializer/reason.

Parameters
[in]detailsInitializer for the exception.
Exceptions
std::bad_allocif out of memory.

It is possible to call this constructor either with an explicit ExceptionInitializer object (useful for more complex cases), or a simple string if only a reason string needs to be provided.


The documentation for this class was generated from the following files: