OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Error Handling

Functions

void epr_set_err_handler (EPR_FErrHandler err_handler)
 
EPR_EErrCode epr_get_last_err_code ()
 
const char * epr_get_last_err_message ()
 
void epr_clear_err ()
 

Detailed Description

Function Documentation

◆ epr_clear_err()

void epr_clear_err ( )

Clears the last error. After calling this function, calling epr_get_last_err_code returns e_err_none or zero and epr_get_last_err_message returns NULL.

Definition at line 247 of file epr_core.c.

◆ epr_get_last_err_code()

EPR_EErrCode epr_get_last_err_code ( )

Gets the error code of the error that occured during the last API function call.

Returns
the error code, e_err_none or zero if no error occured

Sets the error code of the error that occured during the last API function call.

Returns
the error code, e_err_none or zero if no error occured

Definition at line 265 of file epr_core.c.

◆ epr_get_last_err_message()

const char* epr_get_last_err_message ( )

Gets the error message of the error that occured during the last API function call.

Returns
the error message, NULL if no error occured

Sets the error message of the error that occured during the last API function call.

Returns
the error message, NULL if no error occured

Definition at line 281 of file epr_core.c.

◆ epr_set_err_handler()

void epr_set_err_handler ( EPR_FErrHandler  err_handler)

Sets the error handler for the ENVISAT API.

Parameters
err_handlerthe new error handler (function pointer), can be NULL, if errors shall not be reported