Tinker9 70bd052 (Thu Nov 9 12:11:35 2023 -0800)
|
Classes | |
class | tinker::FatalError |
Errors and exceptions that we do not intend to fix or handle. More... | |
Macros | |
#define | TINKER_THROW(msg) |
Throws a fatal error message as a tinker::FatalError exception. More... | |
#define | TINKER_ALWAYS_CHECK_RT_1_(call) |
#define | TINKER_ALWAYS_CHECK_RT_(...) TINKER_GET_2ND_ARG(__VA_ARGS__, TINKER_ALWAYS_CHECK_RT_1_) |
#define | TINKER_ALWAYS_CHECK_RT 0 |
Defined to true in the source code to enable check_rt for the release build. More... | |
#define | check_rt(call, ...) call |
It normally does not do extra work other than the function call it captures, unless if either TINKER_DEBUG or TINKER_ALWAYS_CHECK_RT is true . This macro will then check the error code returned by the function call. More... | |
#define | always_check_rt(...) TINKER_ALWAYS_CHECK_RT_(__VA_ARGS__)(__VA_ARGS__) |
Always checks the returned error code. More... | |
Functions | |
template<class T > | |
std::string | tinker::translateErrorCode (T errcode) |
Translates the error code to text. More... | |
void | tinker::printError () |
Writes the current coordinates to a disk file prior to aborting on a serious error. More... | |
void | tinker::printBacktrace (std::FILE *out=stderr) |
Prints the call stack to a FILE pointer. More... | |
class tinker::FatalError |
Errors and exceptions that we do not intend to fix or handle.
Public Member Functions | |
FatalError (const char *msg) | |
FatalError (const std::string &msg) | |
FatalError (const FatalError &e) | |
const char * | what () const noexcept override |
|
inline |
|
inline |
|
inline |
|
inlineoverridenoexcept |
#define always_check_rt | ( | ... | ) | TINKER_ALWAYS_CHECK_RT_(__VA_ARGS__)(__VA_ARGS__) |
Always checks the returned error code.
#define check_rt | ( | call, | |
... | |||
) | call |
It normally does not do extra work other than the function call it captures, unless if either TINKER_DEBUG
or TINKER_ALWAYS_CHECK_RT
is true
. This macro will then check the error code returned by the function call.
#define TINKER_ALWAYS_CHECK_RT 0 |
Defined to true
in the source code to enable check_rt
for the release build.
#define TINKER_ALWAYS_CHECK_RT_ | ( | ... | ) | TINKER_GET_2ND_ARG(__VA_ARGS__, TINKER_ALWAYS_CHECK_RT_1_) |
#define TINKER_ALWAYS_CHECK_RT_1_ | ( | call | ) |
#define TINKER_THROW | ( | msg | ) |
Throws a fatal error message as a tinker::FatalError exception.
void tinker::printBacktrace | ( | std::FILE * | out = stderr | ) |
Prints the call stack to a FILE
pointer.
void tinker::printError | ( | ) |
Writes the current coordinates to a disk file prior to aborting on a serious error.
std::string tinker::translateErrorCode | ( | T | errcode | ) |
Translates the error code to text.