XtErrorMsg(3) XT COMPATIBILITY FUNCTIONS XtErrorMsg(3)

# [NAME](#NAME)

XtErrorMsg, XtSetErrorMsgHandler, XtWarningMsg, XtSetWarningMsgHandler - high-level error handlers

# [SYNTAX](#SYNTAX)

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

\_X\_NORETURN void XtErrorMsg(const char \**name*, const char \**type*, const char \**class*, const char \**defaultMsg*, String \**params*, Cardinal \**num\_params*);

void XtSetErrorMsgHandler(\_X\_NORETURN XtErrorMsgHandler *msg\_handler*);

void XtSetWarningMsgHandler(XtErrorMsgHandler *msg\_handler*);

void XtWarningMsg(const char \**name*, const char \**type*, const char \**class*, const char \**defaultMsg*, String \**params*, Cardinal \**num\_params*);

# [ARGUMENTS](#ARGUMENTS)

[*class*](#class)

Specifies the resource class of the error message.

[*default*](#default)

Specifies the default message to use.

[*name*](#name)

Specifies the general kind of error.

[*type*](#type)

Specifies the detailed name of the error.

[*msg\_handler*](#msg_handler)

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

[*num\_params*](#num_params)

Specifies the number of values in the parameter list.

[*params*](#params)

Specifies a pointer to a list of values to be stored in the message.

# [DESCRIPTION](#DESCRIPTION)

The **XtErrorMsg** function has been superseded by **XtAppErrorMsg**.

The **XtSetErrorMsgHandler** function has been superseded by **XtAppSetErrorMsgHandler**.

The **XtSetWarningMsgHandler** function has been superseded by **XtAppSetWarningMsgHandler**.

The **XtWarningMsg** function has been superseded by **XtAppWarningMsg**

# [SEE ALSO](#SEE_ALSO)

[**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: XtSetWarningMsgHandler(3) from libxt 1.3.1-r11 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
