32
35
char * ret_val = malloc (sizeof(char) * 32);
33
36
char * error_type_str = NULL;
34
37
switch (self->priv->error_type) {
36
39
error_type_str = s_string_new ("NONE");
39
42
error_type_str = s_string_new ("INPUT/OUTPUT");
42
45
error_type_str = s_string_new ("OVERFLOW");
45
48
error_type_str = s_string_new ("OTHER");
48
51
error_type_str = s_string_new ("NULL");
51
56
sprintf (ret_val, "Error: %s, Message: %s", error_type_str, self->priv->message);
57
61
void error_deinit_method (SError * self) {
58
62
free (self->priv->message);