Gromacs
2025-dev-20240913-b871546
|
Exception information writer for cases where exceptions should be avoided.
Formats the messages into the provided FILE handle without checking for errors in std::fprintf() calls.
Public Member Functions | |
MessageWriterFileNoThrow (FILE *fp) | |
Initializes a writer that writes to the given file handle. | |
void | writeLine (const char *text, int indent) override |
Writes a single line of text into the output. More... | |
void | writeErrNoInfo (int errorNumber, const char *funcName, int indent) override |
Writes information about a system error (errno-based). More... | |
|
inlineoverridevirtual |
Writes information about a system error (errno-based).
[in] | errorNumber | errno value |
[in] | funcName | Name of the system call (can be NULL). |
[in] | indent | Suggested number of spaces to indent the output. |
Implements gmx::anonymous_namespace{exceptions.cpp}::IMessageWriter.
|
inlineoverridevirtual |
Writes a single line of text into the output.
[in] | text | Text to write on the line. |
[in] | indent | Suggested number of spaces to indent the line. |
Implements gmx::anonymous_namespace{exceptions.cpp}::IMessageWriter.