Error Reporting

Error codes and error reporting functions. More...

Enumerations

enum  pep_error_t {
  PEP_OK = 0, PEP_ERR_MEMORY, PEP_ERR_NULL_POINTER, PEP_ERR_LLIST,
  PEP_ERR_PIP_INIT, PEP_ERR_OH_INIT, PEP_ERR_OPTION_INVALID, PEP_ERR_PIP_PROCESS,
  PEP_ERR_AUTHZ_REQUEST, PEP_ERR_OH_PROCESS, PEP_ERR_MARSHALLING_HESSIAN, PEP_ERR_MARSHALLING_IO,
  PEP_ERR_UNMARSHALLING_HESSIAN, PEP_ERR_UNMARSHALLING_IO, PEP_ERR_CURL = 1024
}
 PEP client error codes. More...

Functions

const char * pep_strerror (pep_error_t pep_errno)
 Gets the string describing the error number errno.

Detailed Description

Error codes and error reporting functions.

Example:

 ...
 pep_error_t pep_rc= pep_setoption(pep,PEP_OPTION_ENDPOINT_URL,"http://argus.example.org:8154/authz");
 if (pep_rc != PEP_OK) {
    fprintf(stderr,"ERROR: %s\n",pep_strerror(pep_rc));
    pep_destroy(pep);
    exit(1);
 }
 ...

See also:
pep_error_t

pep_strerror(pep_error_t errno)


Enumeration Type Documentation

enum pep_error_t

PEP client error codes.

Use pep_strerror(pep_error_t errno) to retrieve the error description.

See also:
pep_strerror(pep_error_t errno)
Enumerator:
PEP_OK  OK, No error.
PEP_ERR_MEMORY  Memory allocation error.
PEP_ERR_NULL_POINTER  NULL pointer exception.
PEP_ERR_LLIST  Linked list allocation error.
PEP_ERR_PIP_INIT  PIP pip_init_func() error in pep_addpip(pep_pip_t *).
PEP_ERR_OH_INIT  Obligation Hanlder oh_init_func() error in pep_addobligationhandler(pep_obligationhandler_t *).
PEP_ERR_OPTION_INVALID  PEP client option invalid in pep_setoption(pep_option_t,args).
PEP_ERR_PIP_PROCESS  PIP process(pep_request_t) error in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_AUTHZ_REQUEST  HTTP Request failed (status not 200) in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_OH_PROCESS  Obligation Handler oh_process_func() error in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_MARSHALLING_HESSIAN  Hessian marshalling error in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_MARSHALLING_IO  IO error in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_UNMARSHALLING_HESSIAN  Hessian unmarshalling error in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_UNMARSHALLING_IO  IO error in pep_authorize(pep_request_t **,pep_response_t **).
PEP_ERR_CURL  Any CURL error (MUST BE LAST OF ENUM).


Function Documentation

const char* pep_strerror ( pep_error_t  pep_errno  ) 

Gets the string describing the error number errno.

Parameters:
pep_errno the error code returned by a function.
Returns:
const char * the error message describing the error.
Examples:
pep_client_example.c.


Generated on Wed May 16 13:35:33 2012 for Argus PEP client API by  doxygen 1.4.7