PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
pism::RuntimeError Class Reference

#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. 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

Detailed Description

Definition at line 46 of file error_handling.hh.

The documentation for this class was generated from the following files: