|
Gromacs
2026.0-dev-20251110-920b6d1
|
#include <gromacs/utility/exceptions.h>
Inheritance diagram for gmx::SimulationInstabilityError:
Collaboration diagram for gmx::SimulationInstabilityError:Exception class for simulation instabilities.
Public Member Functions | |
| SimulationInstabilityError (const ExceptionInitializer &details) | |
| Creates an exception object with the provided initializer/reason. More... | |
| int | errorCode () const override |
| Returns the error code corresponding to the exception type. | |
Public Member Functions inherited from gmx::GromacsException | |
| GromacsException (const GromacsException &)=default | |
| GromacsException (GromacsException &&) noexcept=default | |
| GromacsException & | operator= (const GromacsException &)=default |
| GromacsException & | operator= (GromacsException &&) noexcept=default |
| const char * | what () const noexceptoverride |
| Returns the reason string for the exception. More... | |
| template<class InfoType > | |
| const InfoType::value_type * | getInfo () const |
| Returns the value associated with given ExceptionInfo. More... | |
| template<class Tag , typename T > | |
| void | setInfo (const ExceptionInfo< Tag, T > &item) |
| Associates extra information with 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... | |
|
inlineexplicit |
Creates an exception object with the provided initializer/reason.
| [in] | details | Initializer for the exception. |
| std::bad_alloc | if 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.
1.8.5