---
name: "XtAppError"
section: "3x"
platform: "linux"
package: "libxt-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XtAppError/3x"
---

# XtAppError(3x)

low-level error handlers

## NAME

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

## SYNTAX

void XtAppError(XtAppContext *app\_context*, String *message*);

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

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

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

## ARGUMENTS

- *app\_context*

  Specifies the application context.

- *message*

  Specifies the nonfatal error message that is to be reported. or the nonfatal error procedure, which usually returns

- *handler*

  Specifies the new fatal error procedure, which should not return,.

- *message*

  Specifies the message that is to be reported.

## 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

XtAppGetErrorDatabase(3Xt), XtAppErrorMsg(3Xt)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
