|
TECA
The Toolkit for Extreme Climate Analysis
|
global error handling hooks More...
Functions | |
| void | error_message (const char *msg) |
| void | error_message_abort (const char *msg) |
| void | set_error_handler (p_teca_error_handler handler) |
| void | set_error_message_handler () |
| Install the teca_error::error_message error handler. More... | |
| void | set_error_message_abort_handler () |
| Install the teca_error::error_message_abort error handler. More... | |
Variables | |
| p_teca_error_handler | error_handler |
| The global error handler instance. More... | |
global error handling hooks
| void teca_error::error_message | ( | const char * | msg | ) |
An error handler that flushes stdout and stderr streams, and sends msg to the stderr before returing. This implements the behavior up to and including TECA 4.1.0
| void teca_error::error_message_abort | ( | const char * | msg | ) |
An error handler that flushes stdout and stderr streams, and sends msg to the stderr before aborting. When MPI is in use MPI_Abort is invoked. This implements the behavior after TECA 4.1.0
| void teca_error::set_error_handler | ( | p_teca_error_handler | handler | ) |
Install a custom error haandler. The error handler must have the following signature.
void error_handler(const char *msg);
| void teca_error::set_error_message_abort_handler | ( | ) |
Install the teca_error::error_message_abort error handler.
| void teca_error::set_error_message_handler | ( | ) |
Install the teca_error::error_message error handler.
| p_teca_error_handler teca_error::error_handler |
The global error handler instance.