GR_EVENT_ERROR

Name

GR_EVENT_ERROR -- Error event structure

Synopsis

typedef struct 
{
    GR_EVENT_TYPE   type;
    GR_FUNC_NAME    name;
    GR_ERROR        code;
    GR_ID           id;
} GR_EVENT_ERROR;
  

Description

The GR_EVENT_ERROR structure is used by nano-X to report runtime errors. Some errors are system errors, such as GR_ERROR_MALLOC_FAILED which indicates that a memory allocation failed. Other error types are program errors, such as GR_ERROR_ILLEGAL_ON_ROOT_WINDOW which will occur if or example the program tries to move the root window.

Fields

TypeNameDescription
GR_EVENT_TYPEtypeThe event type will be GR_EVENT_TYPE_ERROR.
GR_FUNC_NAMEnameThe name of the function in which the error occured.
GR_ERRORcodeThe type of error that occured.
GR_IDidUnused

See Also

GR_EVENT.