Gromacs
5.1.3
|
Declares error codes and related functions for fatal error handling.
Macros | |
#define | GMX_ERROR(retcode, msg) |
Macro for raising an error and returning from a function. More... | |
#define | GMX_ERROR_NORET(retcode, msg) ::gmx::internal::fatalError(retcode, msg, __FILE__, __LINE__) |
Macro for raising an error in a function that does not return int . More... | |
Typedefs | |
typedef void(* | gmx::ErrorHandlerFunc )(int retcode, const char *msg, const char *file, int line) |
Callback function pointer type for error handlers. More... | |
Enumerations | |
enum | gmx::ErrorCode { gmx::eeOK, gmx::eeOutOfMemory, gmx::eeFileNotFound, gmx::eeFileIO, gmx::eeInvalidInput, gmx::eeInconsistentInput, gmx::eeInstability, gmx::eeNotImplemented, gmx::eeInvalidValue, gmx::eeInvalidCall, gmx::eeInternalError, gmx::eeAPIError, gmx::eeRange, gmx::eeCommunication, gmx::eeUnknownError } |
Possible error return codes from Gromacs functions. More... | |
Functions | |
const char * | gmx::getErrorCodeString (int errorcode) |
Returns a short string description of an error code. More... | |
ErrorHandlerFunc | gmx::setFatalErrorHandler (ErrorHandlerFunc handler) |
Sets callback function for handling errors. More... | |