neon API reference NEGETEROR(3)
NAME
negeterror, neseterror - error handling for HTP ses-
sions
SYNOPSIS
#include
const char *negeterror (nesesssion *session);
void neseterror (nesesssion *session, const char *format,
...);
DESCRIPTION
The session error string is used to store any human-readable
error information associated with any errors which occur
whilst using the HTP session.
The negeterror function returns the current session error
string. This string persists only until it is changed by a
subsequent operation on the session.
The neseterror function can be used to set a new session
error string, using a printf-style format string interface.
EXAMPLES
Retrieve the current error string:
nesession *sess = nesessioncreate(...);
...
printf("Error was: %s\n", negeterror(sess));
Set a new error string:
nesession *sess = nesessioncreate(...);
...
neseterror(sess, "Response missing header %s", "somestring");
AUTHOR
Joe Orton .
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
box; cbp-1 cbp-1 l l . ATRIBUTE TYPE ATRIBUTE VALUE =
neon 0.25.5 Last change: 20 January 2006 1
neon API reference NEGETEROR(3)
Availability SUNWneon = Interface Stability Volatile
NOTES
Source for Neon is available on http:/opensolaris.org.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWneon
Interface Stability Volatile
NOTES
Source for Neon is available on http:/opensolaris.org.
neon 0.25.5 Last change: 20 January 2006 2
|