NAME

set_error_action - Modifies the behaviour of error storing routines

SYNOPSIS

#include "l/l_sys_err.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


void set_error_action(Error_action error_action);

DESCRIPTION

This routine modifies the behaviour of error storing routines. Normally, errors are stored until either kjb_print_error() or kjb_get_error() is called (error_action==SET_ERROR_ON_ERROR). This routine can be used to change this behaviour. For example, if we do not want the errors incurred while some routine is being executed to overwrite current errors, we may wish to either ignore the errors (error_action==IGNORE_ERROR_ON_ERROR) or have them always added (error_action==FORCE_ADD_ERROR_ON_ERROR).

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

push_error_action , pop_error_action , get_error_action , set_bug_handler , default_bug_handler , kjb_print_error , kjb_get_error , kjb_get_strlen_error , kjb_clear_error , set_error , add_error , cat_error , insert_error , str_set_error , str_add_error , str_cat_error , str_insert_error , set_bug