Main Page | Data Structures | File List | Data Fields | Globals

etl_error.h File Reference

Functions for manipulating ETL exception objects. More...

#include <apr.h>
#include <apr_errno.h>
#include <apr_pools.h>

Go to the source code of this file.

Data Structures

struct  etl_error_t
 An exception object. More...

Defines

#define ETL_ERR(expression)
 Check if the etl_error_t returned by expression is equal to ETL_SUCCESS.
#define ETL_SUCCESS   NULL
 Successful return value for a function that returns etl_error_t.
#define etl_error_create(err, msg)
 Return a new etl_error_t with underlying apr_status_t err and message msg.
#define etl_error_createf(err, fmt,)
 Return a new etl_error_t with underlying apr_status_t err and message created printf style with fmt and varargs.

Functions

etl_error_tetl_error_create_impl (apr_status_t err, const char *msg, apr_uint32_t line, const char *file)
 The underlying function that implements etl_error_create.
etl_error_tetl_error_createf_impl (apr_status_t err, apr_uint32_t line, const char *file, const char *fmt,...)
 The underlying function that implements etl_error_createf.
void etl_error_clear (etl_error_t *err)
 Destroy err.


Detailed Description

Functions for manipulating ETL exception objects.

Definition in file etl_error.h.


Define Documentation

#define ETL_ERR expression   ) 
 

Value:

do {                \
          etl_error_t *etl__err = (expression); \
          if (etl__err)                         \
            return etl__err;                    \
        } while (0)
Check if the etl_error_t returned by expression is equal to ETL_SUCCESS.

If it is, do nothing, if not, then return it.

Definition at line 36 of file etl_error.h.

#define etl_error_create err,
msg   ) 
 

Value:

etl_error_create_impl(err,      \
                                                         msg,      \
                                                         __LINE__, \
                                                         __FILE__)
Return a new etl_error_t with underlying apr_status_t err and message msg.

Definition at line 60 of file etl_error.h.

#define etl_error_createf err,
fmt   ) 
 

Value:

etl_error_createf_impl(err,         \
                                                                __LINE__,    \
                                                                __FILE__,    \
                                                                fmt,         \
                                                                __VA_ARGS__)
Return a new etl_error_t with underlying apr_status_t err and message created printf style with fmt and varargs.

Definition at line 81 of file etl_error.h.


Function Documentation

etl_error_t* etl_error_create_impl apr_status_t  err,
const char *  msg,
apr_uint32_t  line,
const char *  file
 

The underlying function that implements etl_error_create.

This is an implementation detail, and should not be directly called by users.

etl_error_t* etl_error_createf_impl apr_status_t  err,
apr_uint32_t  line,
const char *  file,
const char *  fmt,
  ...
 

The underlying function that implements etl_error_createf.

This is an implementation detail, and should not be directly called by users.


Generated on Sat Jun 3 10:17:28 2006 for ETL by  doxygen 1.4.4