XtAppError(3) XT FUNCTIONS XtAppError(3)

# [NAME](#NAME)

XtAppError, XtAppSetErrorHandler, XtAppSetWarningHandler, XtAppWarning - low-level error handlers

# [SYNTAX](#SYNTAX)

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

\_X\_NORETURN void XtAppError(XtAppContext *app\_context*, const char \**message*);

XtErrorHandler XtAppSetErrorHandler(XtAppContext *app\_context*, \_X\_NORETURN XtErrorHandler *handler*);

XtErrorHandler XtAppSetWarningHandler(XtAppContext *app\_context*, XtErrorHandler *handler*);

void XtAppWarning(XtAppContext *app\_context*, const char \**message*);

# [ARGUMENTS](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*message*](#message)

Specifies the nonfatal error message that is to be reported.

[*handler*](#handler)

Specifies the new fatal error procedure, which should not return, or the nonfatal error procedure, which usually returns.

[*message*](#message~2)

Specifies the message that is to be reported.

# [DESCRIPTION](#DESCRIPTION)

The **XtAppError** function calls the installed error procedure and passes the specified message.

The **XtAppSetErrorHandler** function registers the specified procedure, which is called when a fatal error condition occurs.

The **XtAppSetWarningHandler** registers the specified procedure, which is called when a nonfatal error condition occurs.

The **XtAppWarning** function calls the installed nonfatal error procedure and passes the specified message.

# [SEE ALSO](#SEE_ALSO)

[XtAppGetErrorDatabase(3)](/man/os/libxt/XtAppGetErrorDatabase.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: XtAppSetWarningHandler(3) from libxt 1.3.1-r9 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
