TECA
The Toolkit for Extreme Climate Analysis
teca_error Namespace Reference

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

Detailed Description

global error handling hooks

Function Documentation

◆ error_message()

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

◆ error_message_abort()

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

◆ set_error_handler()

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);

◆ set_error_message_abort_handler()

void teca_error::set_error_message_abort_handler ( )

Install the teca_error::error_message_abort error handler.

◆ set_error_message_handler()

void teca_error::set_error_message_handler ( )

Install the teca_error::error_message error handler.

Variable Documentation

◆ error_handler

p_teca_error_handler teca_error::error_handler

The global error handler instance.