XtError(3)
π XtError β low-level error handlers (from the XT COMPATIBILITY FUNCTIONS girlies) π
okay bestie sit DOWN because we're doing XtError(3) and honestly? it's giving "your grandma's API that still works but everyone's moved on." four functions, all of them old news, all of them still in libXt because backwards compatibility is the real main character. let's get into it π«Ά
β¨ NAME β¨
XtError, XtSetErrorHandler, XtSetWarningHandler, XtWarning β the low-level error handler squad π
πΈ SYNTAX πΈ
first you gotta pull the header in, no cap:
#include <X11/Intrinsic.h>
then here's the whole crew, verbatim, don't @ me:
_X_NORETURN void XtError(const char *message);
void XtSetErrorHandler(_X_NORETURN XtErrorHandler handler);
void XtSetWarningHandler(XtErrorHandler handler);
void XtWarning(const char *message);
heads up:XtErroris marked_X_NORETURNβ meaning it does not come back. it's a fatal girlie. she leaves and she does not text back. π
π 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.
yes bestie,messageshows up twice in the list. that's not me being messy, that's just how it is in the original. two different functions, two differentmessageargs, one very tired documentation intern. π₯²
π¦ DESCRIPTION π¦
okay so the tea is: every single one of these has been superseded. as in, replaced. as in, the new versions ate and left no crumbs. periodt. π₯
- The
XtErrorfunction has been superseded byXtAppError. - The
XtSetErrorHandlerfunction has been superseded byXtAppSetErrorHandler. - The
XtSetWarningHandlerfunction has been superseded byXtAppSetWarningHandler. - The
XtWarningfunction has been superseded byXtAppWarning.
so likeβ¦ they still exist, they still compile, but if you're writing new code with these you're lowkey living in the past. the XtApp* versions are the ones with the application context and honestly they just make more sense. no shade to the originals though, they were iconic first π
π SEE ALSO π
XtAppError(3)X Toolkit Intrinsics - C Language InterfaceXlib - C Language X Interface
and that's the whole page, bestie, we ate and left zero crumbs β¨
this was libXt 1.3.1 energy, part of X Version 11, documented back on the XtError(3) page β sending you off with a kiss and a _X_NORETURN πππ¦ iykyk, fr fr
π¦ 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 (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms