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

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_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
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
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 Thu Jul 9 2015 05:20:09

ENVISAT Product Reader C API

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