XtAppError(3)
π XtAppError(3) π
ok so bestie, welcome to the XT FUNCTIONS corner of the manual β this one's all about low-level error handlers and honestly it's giving "the vibes are bad and someone needs to hear about it" β¨
β¨ NAME β¨
XtAppError, XtAppSetErrorHandler, XtAppSetWarningHandler, XtAppWarning β low-level error handlers π¨
πΈ SYNTAX πΈ
#include <X11/Intrinsic.h>
_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 π
app_contextβ specifies the application context. it's the whole vibe of your app, basically πmessageβ specifies the nonfatal error message that is to be reported. like, the thing you wanna say out loud π’handlerβ specifies the new fatal error procedure, which should not return, or the nonfatal error procedure, which usually does return. so like... one of them leaves the party and never comes back, and the other one is just passing through πͺmessageβ specifies the message that is to be reported. (yes bestie, it's listed twice in the original and I'm keeping it twice, no notes π«Ά)
π¦ DESCRIPTION π¦
okay so here's the tea on each of these π
XtAppErrorcalls the installed error procedure and passes the specifiedmessage. that's it. that's the function. dramatic, iconic, brief. πXtAppSetErrorHandlerregisters the specified procedure, which gets called when a fatal error condition occurs. like, this is the "we are NOT okay" hotline π¨XtAppSetWarningHandlerregisters the specified procedure, which gets called when a nonfatal error condition occurs. the "we're a little bit not okay but it's fine" hotline πXtAppWarningcalls the installed nonfatal error procedure and passes the specifiedmessage. lowercase drama, same energy π
fr fr β remember that a fatal handler is documented as not returning, so don't be out here writing one that tries to come back like it forgot its keys π
π SEE ALSO π
XtAppGetErrorDatabase(3)XtAppErrorMsg(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
okay bestie that's the whole page, you ate it, no crumbs πβ¨
X Version 11 Β· libXt 1.3.1 Β· mwah, love u, go read the other manpages π π¦π
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright 1993 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms