Gromacs
5.1.4
|
#include "gmxpre.h"
#include "exceptions.h"
#include "config.h"
#include <cstring>
#include <new>
#include <stdexcept>
#include <typeinfo>
#include <boost/shared_ptr.hpp>
#include <boost/exception/get_error_info.hpp>
#include "thread_mpi/system_error.h"
#include "gromacs/utility/basenetwork.h"
#include "gromacs/utility/errorcodes.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/stringutil.h"
#include "errorformat.h"
Implements classes and functions in exceptions.h.
Classes | |
class | gmx::anonymous_namespace{exceptions.cpp}::ErrorMessage |
Error message or error context text item. More... | |
class | gmx::anonymous_namespace{exceptions.cpp}::MessageWriterInterface |
Abstracts actual output from the other logic in exception formatting. More... | |
class | gmx::anonymous_namespace{exceptions.cpp}::MessageWriterFileNoThrow |
Exception information writer for cases where exceptions should be avoided. More... | |
class | gmx::anonymous_namespace{exceptions.cpp}::MessageWriterString |
Exception information writer to format into an std::string. More... | |
Typedefs | |
typedef boost::error_info < struct errinfo_message_, ErrorMessage > | gmx::anonymous_namespace{exceptions.cpp}::errinfo_message |
Stores a reason or the top-most context string of an exception. More... | |
typedef boost::error_info < struct errinfo_message_, internal::NestedExceptionList > | gmx::anonymous_namespace{exceptions.cpp}::errinfo_nested_exceptions |
Stores list of nested exceptions for Gromacs exceptions. | |
Functions | |
void | gmx::anonymous_namespace{exceptions.cpp}::formatExceptionMessageInternal (MessageWriterInterface *writer, const std::exception &ex, int indent) |
Prints error information for an exception object. More... | |
void | gmx::printFatalErrorMessage (FILE *fp, const std::exception &ex) |
Formats a standard fatal error message for reporting an exception. More... | |
std::string | gmx::formatExceptionMessageToString (const std::exception &ex) |
Formats an error message for reporting an exception. More... | |
void | gmx::formatExceptionMessageToFile (FILE *fp, const std::exception &ex) |
Formats an error message for reporting an exception. More... | |
int | gmx::processExceptionAtExit (const std::exception &ex) |
Handles an exception that is causing the program to terminate. More... | |