Fire Foot API Reference Manual |
---|
FFError — Class for handling errors.
#include <ff-error.h> struct FFError; FFError* ff_error_new (void); FFError* ff_error_new_initialized (ISC_STATUS *status); void ff_error_free (FFError *self); glong ff_error_get_number (FFError *self); void ff_error_set_number (FFError *self, glong error_number); const gchar* ff_error_get_description (FFError *self); void ff_error_set_description (FFError *self, const gchar *description); const gchar* ff_error_get_sqldescription (FFError *self); void ff_error_set_sqldescription (FFError *self, const gchar *description); const gchar* ff_error_get_message (FFError *self); void ff_error_set_message (FFError *self, const gchar *message);
FFError* ff_error_new (void);
Constructor for FFError class.
Returns : | A new FFError. |
FFError* ff_error_new_initialized (ISC_STATUS *status);
Constructor for FFError class. Creates an error object and set properties from status vector.
status : | A pointer to a Firebird ISC_STATUS. |
Returns : | A new FFError. |
glong ff_error_get_number (FFError *self);
Returns Firebird error number.
self : | A FFError. |
Returns : | A glong with error number or -1 no SQL error. |
void ff_error_set_number (FFError *self, glong error_number);
Set Firebird error number.
self : | A FFError. |
error_number : | A Firebird error number. |
const gchar* ff_error_get_description (FFError *self);
Get Firebird error message.
self : | A FFError. |
Returns : | A string with description of error. |
void ff_error_set_description (FFError *self, const gchar *description);
Set Firebird error message.
self : | A FFError. |
description : | A string containing error description. |
const gchar* ff_error_get_sqldescription (FFError *self);
Get Firebird SQL error message.
self : | A FFError. |
Returns : | A string with description of SQL error message. |
void ff_error_set_sqldescription (FFError *self, const gchar *description);
Set Firebird SQL error message.
self : | A FFError. |
description : | A string containing SQL error description. |
const gchar* ff_error_get_message (FFError *self);
Get self message.
self : | A FFError. |
Returns : | A string containing error message. |
<< FFUser | Index >> |