QOF  0.8.7
Macros | Typedefs | Functions

Extensible error handling. More...

#include "qofsession.h"

Go to the source code of this file.

Macros

#define QOF_MOD_ERROR   "qof-error-module"
 
#define QOF_SUCCESS   0
 
#define QOF_FATAL   -1
 general error value More...
 

Typedefs

typedef struct QofError_s QofError
 

Functions

QofErrorId qof_error_register (const gchar *err_message, gboolean use_file)
 Generate and register a new error. More...
 
void qof_error_unregister (QofErrorId id)
 Unregister an error. More...
 
void qof_error_set (QofSession *session, QofErrorId error)
 Add an error to the stack for this session. More...
 
void qof_error_set_be (QofBackend *be, QofErrorId error)
 
void qof_error_clear (QofSession *session)
 clear the error stack for the session. More...
 
QofErrorId qof_error_check_be (QofBackend *be)
 Check for errors. More...
 
QofErrorId qof_error_check (QofSession *session)
 
QofTimeqof_error_get_time_be (QofBackend *be)
 Get the time of the most recent error. More...
 
QofTimeqof_error_get_time (QofSession *session)
 Alternative for applications.
 
QofErrorId qof_error_get_id_be (QofBackend *be)
 Pop the most recent error from the backend stack. More...
 
QofErrorId qof_error_get_id (QofSession *session)
 Alternative for applications.
 
const gchar * qof_error_get_message_be (QofBackend *be)
 Pop the most recent error and get the message. More...
 
const gchar * qof_error_get_message (QofSession *session)
 Alternative for applications.
 

Detailed Description

Extensible error handling.

Author
Copyright 2006 Neil Williams linux.nosp@m.@cod.nosp@m.ehelp.nosp@m..co..nosp@m.uk

Definition in file qoferror.h.