2
* An Error is a data structure that inherets from BaseObject.
4
* An Error represents an error that can occur.
11
#include "baseobject.h"
17
typedef struct _SErrorPrivate SErrorPrivate;
19
typedef struct _SError {
20
SBaseObjectInstance parent;
21
SErrorPrivate * priv; //Pimple pointer to the private data.
26
* The error class is not changed, no extra methods are needed.
28
typedef struct _SErrorClass {
29
SBaseObjectClass parent_class;
37
S_ERROR_OTHER = INT_MAX - 1,
38
S_ERROR_NULL = INT_MAX
43
* the constructor for the
45
SError * s_error_new (SErrorType error, char * message);
47
void s_error_free (SError * self);
49
SErrorType s_error_get_error_type (SError * self);
51
void s_error_print_error (SError * self);