Functions | Variables
oomph::TerminateHelper Namespace Reference

Helper namespace for set_terminate function – used to spawn. More...

Functions

void setup ()
 Setup terminate helper.
 
void suppress_exception_error_messages ()
 Flush string stream of error messages (call when error has been caught)
 
void spawn_errors_from_uncaught_errors ()
 Function to spawn messages from uncaught errors.
 
void clean_up_memory ()
 Clean up function that deletes anything dynamically allocated in this namespace.
 

Variables

std::ostream * Error_message_stream_pt = &std::cerr
 Stream to output error messages.
 
std::stringstream * Exception_stringstream_pt = 0
 String stream that records the error message.
 

Detailed Description

Helper namespace for set_terminate function – used to spawn.

messages from uncaught errors

messages from uncaught errors (their destructor may not be called)

Function Documentation

◆ clean_up_memory()

void oomph::TerminateHelper::clean_up_memory ( )

Clean up function that deletes anything dynamically allocated in this namespace.

Definition at line 86 of file oomph_definitions.cc.

References Exception_stringstream_pt.

Referenced by oomph::Problem::~Problem().

◆ setup()

void oomph::TerminateHelper::setup ( )

◆ spawn_errors_from_uncaught_errors()

void oomph::TerminateHelper::spawn_errors_from_uncaught_errors ( )

Function to spawn messages from uncaught errors.

Definition at line 79 of file oomph_definitions.cc.

Referenced by setup().

◆ suppress_exception_error_messages()

void oomph::TerminateHelper::suppress_exception_error_messages ( )

Flush string stream of error messages (call when error has been caught)

Suppress error messages (e.g. because error has been caught)

Definition at line 72 of file oomph_definitions.cc.

References Exception_stringstream_pt.

Referenced by oomph::OomphLibException::disable_error_message().

Variable Documentation

◆ Error_message_stream_pt

std::ostream * oomph::TerminateHelper::Error_message_stream_pt = &std::cerr

Stream to output error messages.

Definition at line 100 of file oomph_definitions.cc.

◆ Exception_stringstream_pt

std::stringstream * oomph::TerminateHelper::Exception_stringstream_pt = 0

String stream that records the error message.

Definition at line 103 of file oomph_definitions.cc.

Referenced by clean_up_memory(), oomph::OomphLibException::OomphLibException(), setup(), and suppress_exception_error_messages().