PISM, A Parallel Ice Sheet Model
stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
|
#include <error_handling.hh>
Public Types | |
typedef void(* | Hook) (RuntimeError *) |
Public Member Functions | |
RuntimeError (const ErrorLocation &location, const std::string &message) | |
~RuntimeError () throw () | |
void | add_context (const std::string &message) |
Add a message providing some context. This way we can (sort of) get a stack trace even though C++ exceptions do not provide one. More... | |
void | add_context (const char format[],...) __attribute__((format(printf |
void void | print (MPI_Comm com) |
Static Public Member Functions | |
static RuntimeError | formatted (const ErrorLocation &location, const char format[],...) __attribute__((format(printf |
build a RuntimeError with a formatted message More... | |
static RuntimeError static void | set_hook (Hook new_hook) |
Protected Attributes | |
std::vector< std::string > | m_context |
ErrorLocation | m_location |
Static Protected Attributes | |
static Hook | sm_hook = NULL |
Definition at line 46 of file error_handling.hh.