GdaError

GdaError — Management of errors

Functions

GdaError * gda_error_new ()
void gda_error_free ()
GList * gda_error_list_copy ()
void gda_error_list_free ()
const gchar * gda_error_get_description ()
void gda_error_set_description ()
glong gda_error_get_number ()
void gda_error_set_number ()
const gchar * gda_error_get_source ()
void gda_error_set_source ()
const gchar * gda_error_get_sqlstate ()
void gda_error_set_sqlstate ()

Types and Values

Description

Functions

gda_error_new ()

GdaError *
gda_error_new (void);


gda_error_free ()

void
gda_error_free (GdaError *error);

Frees the memory allocated by the error object.

Parameters

error

the error object.

 

gda_error_list_copy ()

GList *
gda_error_list_copy (const GList *errors);

Creates a new list which contains the same errors as errors and adds a reference for each error in the list.

You must free the list using gda_error_list_free.

Parameters

errors

a GList holding error objects.

 

Returns

a list of errors.


gda_error_list_free ()

void
gda_error_list_free (GList *errors);

Frees all error objects in the list and the list itself. After this function has been called, the errors parameter doesn't point to valid storage any more.

Parameters

errors

a GList holding error objects.

 

gda_error_get_description ()

const gchar *
gda_error_get_description (GdaError *error);

Parameters

error

a GdaError.

 

Returns

error 's description.


gda_error_set_description ()

void
gda_error_set_description (GdaError *error,
                           const gchar *description);

Sets error 's description .

Parameters

error

a GdaError.

 

description

a description.

 

gda_error_get_number ()

glong
gda_error_get_number (GdaError *error);

Parameters

error

a GdaError.

 

Returns

error 's number.


gda_error_set_number ()

void
gda_error_set_number (GdaError *error,
                      glong number);

Sets error 's number .

Parameters

error

a GdaError.

 

number

a number.

 

gda_error_get_source ()

const gchar *
gda_error_get_source (GdaError *error);

Parameters

error

a GdaError.

 

Returns

error 's source.


gda_error_set_source ()

void
gda_error_set_source (GdaError *error,
                      const gchar *source);

Sets error 's source .

Parameters

error

a GdaError.

 

source

a source.

 

gda_error_get_sqlstate ()

const gchar *
gda_error_get_sqlstate (GdaError *error);

Parameters

error

a GdaError.

 

Returns

error 's SQL state.


gda_error_set_sqlstate ()

void
gda_error_set_sqlstate (GdaError *error,
                        const gchar *sqlstate);

Sets error 's SQL state.

Parameters

error

a GdaError.

 

sqlstate

SQL state.

 

Types and Values

GdaErrorPrivate

typedef struct _GdaErrorPrivate GdaErrorPrivate;