Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Handling ERRORS


Functions

void set_control_level (int level)
void Handle_Error (char *routine, int status)
void disable_user_warnings ()
void restore_user_warnings ()
void disable_erase_flag ()
void restore_erase_flag ()
int get_tiger_errcode (short data_format, int stat)
void get_tiger_errmsg (int stat, char *msg)

Function Documentation

void set_control_level int  level  ) 
 

Definition at line 35 of file io_error.c.

Referenced by disable_user_warnings(), and init_session().

void Handle_Error char *  routine,
int  status
 

defines what to do according to set level control.

Parameters:
routine [char *] name of the routine in which error occured
status [int ] status code

Definition at line 56 of file io_error.c.

References exit_session(), FATAL, get_tiger_errmsg(), NONE, print_error(), print_warning(), and WARNING.

Referenced by alloc_3D_max(), close_cube(), close_E3D_file(), close_frame(), close_spec(), close_table(), create_col(), create_cube(), create_E3D_file(), create_frame(), create_spec(), create_spec_mem(), create_table(), delete_col(), delete_cube(), delete_desc(), delete_E3D_file(), delete_E3D_group(), delete_E3D_spec(), delete_frame(), delete_row(), delete_spec(), delete_table(), delete_tiger_spec(), extract_E3D_slice(), extract_E3D_spec(), get_3D_slice_noalloc(), get_assoc_table_name(), get_col_info(), get_col_name(), get_col_ref(), get_descr_type(), get_E3D_groups(), get_E3D_slice(), get_E3D_spaxels(), get_ID_and_coordinates(), get_lens_coordinates(), get_lenses_coord(), get_lenses_coord_select(), get_lenses_no_from_table(), get_spectra_ID(), header_cube(), header_frame(), header_spec(), init_new_E3D_slice(), init_new_E3D_spec(), init_new_tiger_slice(), init_session(), load_3D_max(), open_cube(), open_E3D_file(), open_frame(), open_spec(), open_table(), parse_arg(), put_E3D_groups(), put_E3D_slice(), put_E3D_spaxels(), put_E3D_spec(), RD_catalog(), RD_col(), RD_desc(), RD_tbl(), Read_one_desc(), save_3D_max(), save_E3D_slice(), save_E3D_spec(), search_in_col(), set_arglist(), set_ID_and_coordinates(), set_inputformat(), set_lens_coordinates(), set_lenses_coord(), set_outputformat(), set_subspec(), WR_desc(), WR_null(), and WR_tbl().

void disable_user_warnings  ) 
 

disables user preferences to handle errors

Definition at line 102 of file io_error.c.

References NONE, and set_control_level().

Referenced by copy_table_desc(), CP_non_std_desc(), create_col(), file_type(), get_all_desc(), handle_select_flag(), header_cube(), header_frame(), header_spec(), open_cube(), open_E3D_file(), open_frame(), open_spec(), open_table(), RD_desc(), read_file_class(), set_super_class(), set_tiger_group(), unset_super_class(), write_file_class(), and write_selection().

void restore_user_warnings  ) 
 

restores user preferences to handle errors

Definition at line 114 of file io_error.c.

Referenced by copy_table_desc(), CP_non_std_desc(), create_col(), file_type(), get_all_desc(), handle_select_flag(), header_cube(), header_frame(), header_spec(), open_cube(), open_E3D_file(), open_frame(), open_spec(), open_table(), RD_desc(), read_file_class(), set_super_class(), set_tiger_group(), unset_super_class(), write_file_class(), and write_selection().

void disable_erase_flag  ) 
 

disables user preferences to earase flag

Definition at line 125 of file io_error.c.

References ASK.

void restore_erase_flag  ) 
 

disables user preferences to earase flag

Definition at line 137 of file io_error.c.

References ASK.

int get_tiger_errcode short  data_format,
int  stat
 

returns the error code according to Tiger conventions

Parameters:
data_format [short ] data format
stat [int ] error status code

Definition at line 151 of file io_error.c.

References EURO3D_FORMAT, FITS_A_FORMAT, FITS_B_FORMAT, IRAF_FORMAT, MIDAS_FORMAT, STSDAS_FORMAT, and TIGER_FORMAT.

Referenced by close_cube(), close_frame(), close_spec(), close_table(), create_col(), create_cube(), create_frame(), create_spec(), create_spec_mem(), create_table(), delete_col(), delete_cube(), delete_desc(), delete_E3D_spec(), delete_frame(), delete_row(), delete_spec(), delete_table(), get_col_info(), get_col_name(), get_col_ref(), get_descr_type(), header_cube(), header_frame(), header_spec(), open_cube(), open_frame(), open_spec(), open_table(), RD_col(), RD_tbl(), Read_one_desc(), search_in_col(), WR_desc(), WR_null(), and WR_tbl().

void get_tiger_errmsg int  stat,
char *  msg
 

returns the error message corresponding to the given code

Parameters:
stat [int ] error status code
msg [char *] corresponding error message

Definition at line 369 of file io_error.c.

References ERR_ACCESS, ERR_ALLOC, ERR_BAD_CAT, ERR_BAD_COL, ERR_BAD_DESC, ERR_BAD_HEAD, ERR_BAD_IMA, ERR_BAD_PARAM, ERR_BAD_SIZE, ERR_BAD_TBL, ERR_BAD_TYPE, ERR_CLOSE, ERR_COL_NUM, ERR_CREAT, ERR_DEL_DESC, ERR_DEL_IMA, ERR_DEL_TBL, ERR_EOF, ERR_FORMAT, ERR_FREE, ERR_GRAPH_DEV, ERR_HEADER_SIZE, ERR_IMA_BOUND, ERR_IMA_EXT, ERR_IMA_HEAD, ERR_NAXIS, ERR_NB_PARAM, ERR_NOCOL, ERR_NODATA, ERR_NODESC, ERR_NOIDENT, ERR_NOIMA, ERR_NOIMPL, ERR_NOTBL, ERR_OFFSET, ERR_OPEN, ERR_OVERFLOW, ERR_READ, ERR_REN_IMA, ERR_REN_TBL, ERR_ROW_NUM, ERR_TBL_EXT, ERR_TBL_HEAD, ERR_WRIT, OK, TK, and UNKNOWN.

Referenced by Handle_Error().


Generated on Tue Jul 1 17:35:47 2003 for IFU_C_iolibs by doxygen1.3