GOErrorInfo: GOffice Reference Manual

## GOErrorInfo GOErrorInfo |

## Functions

#define | GO_INIT_RET_ERROR_INFO()
void | go_error_info_add_details ()
void | go_error_info_add_details_list ()
void | go_error_info_free ()
GOErrorInfo * | go_error_info_new_from_errno ()
GOErrorInfo * | go_error_info_new_from_error_list ()
GOErrorInfo * | go_error_info_new_printf ()
GOErrorInfo * | go_error_info_new_str ()
GOErrorInfo * | go_error_info_new_str_with_details ()
GOErrorInfo * | go_error_info_new_str_with_details_list ()
GOErrorInfo * | go_error_info_new_vprintf ()
GSList * | go_error_info_peek_details ()
char const* | go_error_info_peek_message ()
GOSeverity | go_error_info_peek_severity ()
void | go_error_info_print ()

## Types and Values

| GOErrorInfo
enum | GOSeverity

## Object Hierarchy

        GBoxed
        ╰── GOErrorInfo

## Description

## Functions

### GO_INIT_RET_ERROR_INFO()

    #define             GO_INIT_RET_ERROR_INFO(ret_error)

### go_error_info_add_details ()

    void
    go_error_info_add_details (GOErrorInfo *error,
                               GOErrorInfo *details);

Adds an existing GOErrorInfo instance to `error` .

#### Parameters

error | GOErrorInfo |
details | GOErrorInfo to add |

### go_error_info_add_details_list ()

    void
    go_error_info_add_details_list (GOErrorInfo *error,
                                    GSList *details);

Adds a list of existing GOErrorInfo instances to `error` .

#### Parameters

error | GOErrorInfo |
details | a list of GOErrorInfo to add. | [element-type GOErrorInfo]

### go_error_info_free ()

    void
    go_error_info_free (GOErrorInfo *error);

### go_error_info_new_from_errno ()

    GOErrorInfo *
    go_error_info_new_from_errno (void);

### go_error_info_new_from_error_list ()

    GOErrorInfo *
    go_error_info_new_from_error_list (GSList *errors);

Creates a new GOErrorInfo from a list of existing GOErrorInfo instances to add to the message.

#### Parameters

errors | a list of GOErrorInfo to add. | [element-type GOErrorInfo]

#### Returns

the newly created GOErrorInfo.

[transfer full]

### go_error_info_new_printf ()

    GOErrorInfo *
    go_error_info_new_printf (char const *msg_format,
                              ...);

### go_error_info_new_str ()

    GOErrorInfo *
    go_error_info_new_str (char const *msg);

### go_error_info_new_str_with_details ()

    GOErrorInfo *
    go_error_info_new_str_with_details (char const *msg,
                                        GOErrorInfo *details);

Creates a new GOErrorInfo from `message` and an existing GOErrorInfo instance to add to the message.

#### Parameters

msg | error message |
details | GOErrorInfo to add |

#### Returns

the newly created GOErrorInfo.

[transfer full]

### go_error_info_new_str_with_details_list ()

    GOErrorInfo *
    go_error_info_new_str_with_details_list
                                   (char const *msg,
                                    GSList *details);

Creates a new GOErrorInfo from `message` and a list of existing GOErrorInfo instances to add to the message.

#### Parameters

msg | error message |
details | a list of GOErrorInfo to add. | [element-type GOErrorInfo]

#### Returns

the newly created GOErrorInfo.

[transfer full]

### go_error_info_new_vprintf ()

    GOErrorInfo *
    go_error_info_new_vprintf (GOSeverity severity,
                               char const *msg_format,
                               va_list args);

### go_error_info_peek_details ()

    GSList *
    go_error_info_peek_details (GOErrorInfo *error);

#### Parameters

error | error message |

#### Returns

the newly details in `error` .

[element-type GOErrorInfo][transfer full]

### go_error_info_peek_message ()

    char const*
    go_error_info_peek_message (GOErrorInfo *error);

### go_error_info_peek_severity ()

    GOSeverity
    go_error_info_peek_severity (GOErrorInfo *error);

### go_error_info_print ()

    void
    go_error_info_print (GOErrorInfo *error);

## Types and Values

### GOErrorInfo

    typedef struct _GOErrorInfo GOErrorInfo;

### enum GOSeverity

#### Members

GO_WARNING | warning. |
GO_ERROR | error. |