---
name: "XtWarning"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtError"
---

# XtWarning(3)

low-level error handlers

Part of [XtError(3)](/XtError/3.md).

## NAME

XtError, XtSetErrorHandler, XtSetWarningHandler, XtWarning - low-level error handlers

## SYNTAX

\#include \<X11/Intrinsic.h\>

\_X\_NORETURN void XtError(const char \**message*);

void XtSetErrorHandler(\_X\_NORETURN XtErrorHandler *handler*);

void XtSetWarningHandler(XtErrorHandler *handler*);

void XtWarning(const char \**message*);

## ARGUMENTS

- *message*

  Specifies the nonfatal error message that is to be reported.

- *handler*

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

- *message*

  Specifies the message that is to be reported.

## DESCRIPTION

The **XtError** function has been superseded by **XtAppError**.

The **XtSetErrorHandler** function has been superseded by **XtAppSetErrorHandler**.

The **XtSetWarningHandler** function has been superseded by **XtAppSetWarningHandler**.

The **XtWarning** function has been superseded by **XtAppWarning**.

## SEE ALSO

[**XtAppError**(3)](/XtAppError/3.md)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
