Defines | |
#define | sul_error_create (sul_error_locate(__FILE__,__LINE__), (sul_error_create)) |
#define | sul_error_quick_wrap (sul_error_locate(__FILE__,__LINE__), (sul_error_quick_wrap)) |
#define | SUL_ERR_WRAP0(expr, wrap_msg) |
#define | SUL_ERR_WRAP1(expr, wrap_msg, a1) |
#define | SUL_ERR_WRAP4(expr, wrap_msg, a1, a2, a3, a4) |
#define | SUL_ERR_WRAP3(expr, wrap_msg, a1, a2, a3) |
#define | SUL_ERR_WRAP2(expr, wrap_msg, a1, a2) |
#define | SUL_ERR_HOOK(expr, code) |
#define | SUL_ERR(expr) |
#define | SUL_ERR_IGN(expr, code) |
#define | SUL_WARN(expr) |
#define | SUL_ERR_IGN_ALL(expr) |
#define | APR_ERR(expr, pool, msg) |
#define | SUL_NO_ERROR (NULL) |
#define | SUL_ERR_NONE (0) |
#define | SUL_ERR_DB_NO_ROWS (1) |
#define | SUL_ERR_DB_TOO_MANY_ROWS (2) |
Functions | |
sul_errors_initialize (apr_pool_t *pool) | |
sul_pool_create (apr_pool_t *pp, const char *tag) | |
sul_error_locate (const char *file, apr_int32_t line) | |
sul_errprintf (const char *strf,...) | |
sul_error_printf (sul_error_t *err, apr_size_t indention, sul_stringbuf_t *stream, apr_pool_t *pool) | |
sul_error_qualify (sul_error_t *err, apr_status_t apr_err, sul_status_t sul_err, sul_error_t *cause) | |
sul_error_create (apr_status_t apr_err, sul_status_t sul_err, sul_error_t *cause, const char *msg,...) | |
sul_error_quick_wrap (sul_error_t *cause, const char *msg,...) | |
sul_error_handle (sul_error_t *error, sul_boolean_t fatal) | |
sul_error_get_cause (sul_error_t *error) | |
sul_error_get_message (sul_error_t *error) | |
sul_error_get_apr_error (sul_error_t *error) | |
sul_error_get_sul_error (sul_error_t *error) | |
sul_error_destroy (sul_error_t *error) |
|
Value: do { \ apr_status_t apr_err__temp = (expr); \ if (apr_err__temp != APR_SUCCESS) \ return (sul_error_create(apr_err__temp, 0, \ NULL, msg)); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ return (sul_err__temp); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) { \ code; \ return (sul_err__temp); \ } \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) { \ if (sul_error_get_sul_error(sul_err__temp) != code) \ sul_error_destroy(sul_err__temp); \ } \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ sul_error_destroy(sul_err__temp); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ return (sul_error_quick_wrap(sul_err__temp, wrap_msg)); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ return (sul_error_quick_wrap(sul_err__temp, wrap_msg, a1)); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ return (sul_error_quick_wrap(sul_err__temp, wrap_msg, a1, a2)); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ return (sul_error_quick_wrap(sul_err__temp, wrap_msg, a1, a2, a3)); \ } while (0) |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ return (sul_error_quick_wrap(sul_err__temp, wrap_msg, a1, a2, a3, a4)); \ } while (0) |
|
Error returned and used when no Error has occured and everything is peachy. |
|
Value: do { \ sul_error_t *sul_err__temp = (expr); \ if (sul_err__temp) \ sul_error_handle(sul_err__temp, FALSE); \ } while (0) |
|
Creates a new error object, hopefully this will rarely be used.
|
|
Destroys an Error.
|
|
Returns the SUL code of the error.
|
|
Returns the error that caused the given error, if any.
|
|
Returns the message for the given error.
|
|
Returns the SUL code of the error.
|
|
Handles the given error, printing its details to STREAM and then if fatal, aborting program execution.
|
|
Debugging function to specify the location of an error prior to creation so that when reported it has the source location.
|
|
|
|
|
|
Wraps an new error around an existing one, assigning a new descriptive message for better debugging.
|
|
Create the Errors system.
|
|
|
|
Create a new APR pool for use in an application using the SUL library.
|