XtAppGetErrorDatabase(3) XT FUNCTIONS XtAppGetErrorDatabase(3)

# [NAME](#NAME)

XtAppGetErrorDatabase, XtAppGetErrorDatabaseText - obtain error database

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

XrmDatabase \*XtAppGetErrorDatabase(XtAppContext *app\_context*);

void XtAppGetErrorDatabaseText(XtAppContext *app\_context*, const char \**name*, const char \**type*, const char \**class*, const char \**defaultMsg*, char \**buffer\_return*, int *nbytes*, XrmDatabase *database*);

# [ARGUMENTS](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*buffer\_return*](#buffer_return)

Specifies the buffer into which the error message is to be returned.

[*class*](#class)

Specifies the resource class of the error message.

[*database*](#database)

Specifies the name of the alternative database that is to be used or NULL if the application's database is to be used.

[*defaultMsg*](#defaultMsg)

Specifies the default message to use.

[*name*](#name)

[*type*](#type)

Specifies the name and type that are concatenated to form the resource name of the error message.

[*nbytes*](#nbytes)

Specifies the size of the buffer in bytes.

# [DESCRIPTION](#DESCRIPTION)

The **XtAppGetErrorDatabase** function returns the address of the error database. The Intrinsics do a lazy binding of the error database and do not merge in the database file until the first call to **XtAppGetErrorDatbaseText**.

The **XtAppGetErrorDatabaseText** returns the appropriate message from the error database or returns the specified default message if one is not found in the error database.

# [SEE ALSO](#SEE_ALSO)

[XtAppError(3)](/man/os/libxt/XtAppError.3), [XtAppErrorMsg(3)](/man/os/libxt/XtAppErrorMsg.3)  
*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtAppGetErrorDatabase(3) from libxt 1.3.1-r11 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
