PISM, A Parallel Ice Sheet Model  stable v2.0.4 committed by Constantine Khrulev on 2022-05-25 12:02: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 47 of file error_handling.hh.

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