ENVISAT Product Reader API for C

Functions
Error Handling

Functions

void epr_set_err_handler (EPR_FErrHandler err_handler)
 Sets the error handler for the ENVISAT API. More...
 
EPR_EErrCode epr_get_last_err_code (void)
 Gets the error code of the error that occured during the last API function call. More...
 
const char * epr_get_last_err_message (void)
 Gets the error message of the error that occured during the last API function call. More...
 
void epr_clear_err (void)
 Clears the last error. More...
 

Detailed Description

Function Documentation

◆ 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

◆ epr_get_last_err_code()

EPR_EErrCode epr_get_last_err_code ( void  )

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

◆ epr_get_last_err_message()

const char* epr_get_last_err_message ( void  )

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

Returns
the error message, NULL if no error occured

◆ epr_clear_err()

void epr_clear_err ( void  )

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.


Generated on Sat Oct 24 2020 07:44:39

ENVISAT Product Reader C API

Written by Brockmann Consult, © 2002     Brockmann Consult      Eropean Space Agency