Gromacs
2024.3
|
#include <gromacs/utility/exceptions.h>
Inherits gmx::internal::IExceptionInfo.
Stores additional context information for exceptions.
Tag | Tag type (typically, a forward-declared struct that is not defined anywhere) that makes all ExceptionInfo types unique, even if they have the same value type. |
T | Type of value this object stores. Needs to be copy-constructible. |
Example of declaring a new info type that stores an integer:
Public Types | |
typedef T | value_type |
The type of value stored in this object. | |
Public Member Functions | |
ExceptionInfo (const T &value) | |
Creates an info object from given value. | |
const T & | value () const |
Returns the stored value. | |