Error Reporting

Error codes and error reporting functions. More...

Typedefs

typedef enum pep_error pep_error_t
 PEP client error codes.

Enumerations

enum  pep_error {
  PEP_OK = 0, PEP_ERR_MEMORY, PEP_ERR_NULL_POINTER, PEP_ERR_LLIST,
  PEP_ERR_CURL, PEP_ERR_PIP_INIT, PEP_ERR_OH_INIT, PEP_ERR_OPTION_INVALID,
  PEP_ERR_PIP_PROCESS, PEP_ERR_CURL_PERFORM, 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 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)


Typedef Documentation

typedef enum pep_error 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)
Examples:
pep_client_example.c.


Enumeration Type Documentation

enum pep_error

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_CURL  Curl 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_CURL_PERFORM  Curl POST 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 **).


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 11 03:49:35 2011 for Argus PEP client API by  doxygen 1.4.7