|
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
#include <error_handling.hh>
Inheritance diagram for pism::RuntimeError: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. | |
| 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 | |
| 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.