Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Error Codes
Collaboration diagram for Error Codes:

Modules

 APR_Util Error Values
 
 Status Value Tests
 

Data Structures

struct  apu_err_t
 

Typedefs

typedef struct apu_err_t apu_err_t
 

Functions

apu_err_tapr_errprintf (apu_err_t *result, apr_pool_t *p, const char *reason, int rc, const char *fmt,...) __attribute__((format(printf
 
apu_err_t __attribute__ ((nonnull(2)))
 

Detailed Description

Typedef Documentation

typedef struct apu_err_t apu_err_t

This structure allows the underlying API error codes to be returned along with plain text error messages that explain to us mere mortals what really happened.

Function Documentation

apu_err_t __attribute__ ( (nonnull(2))  )
apu_err_t* apr_errprintf ( apu_err_t result,
apr_pool_t p,
const char *  reason,
int  rc,
const char *  fmt,
  ... 
)

Populate a apu_err_t structure with the given error, allocated from the given pool.

If the result parameter points at a NULL pointer, a apu_err_t structure will be allocated, otherwise the apu_err_t structure will be reused.

Parameters
resultIf NULL, the apu_err_t structure is allocated and returned, otherwise the existing apu_err_t is used.
pThe pool to use.
reasonThe reason string, may be NULL.
rcThe underlying result code.
fmtThe format of the string
...The arguments to use while printing the data
Returns
The apu_err_t structure on success, NULL if out of memory.