ne_get_error, ne_set_error — error handling for HTTP sessions
#include <ne_session.h>
const char *ne_get_error( | ne_sesssion * | session); |
void ne_set_error( | ne_sesssion * | session, |
| const char * | format, | |
); |
The session error string is used to store any human-readable error information associated with any errors which occur whilst using the HTTP session.
The ne_get_error function returns the current
session error string. This string persists only until it is changed by a
subsequent operation on the session.
The ne_set_error function can be
used to set a new session error string, using a
printf-style format string interface.