XtError(3) XT COMPATIBILITY FUNCTIONS XtError(3)NAME
XtError, XtSetErrorHandler, XtSetWarningHandler, XtWarning - low-level error handlers
SYNTAX
void XtError(String message);
void XtSetErrorHandler(XtErrorHandler handler):
void XtSetWarningHandler(XtErrorHandler handler);
void XtWarning(String 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 superceded by XtAppError.
The XtSetErrorHandler function has been superceded by XtAppSetErrorHandler.
The XtSetWarningHandler function has been superceded by XtAppSetWarningHandler.
The XtWarning function has been superceded by XtAppWarning.
SEE ALSO XtAppError(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.0.5 XtError(3)
Check Out this Related Man Page
XtError() XtError()
Name
XtError - call the low-level fatal error handler.
Synopsis
void XtError(message)
String message;
Inputs
message Specifies the message to be reported.
Returns
XtError() terminates the application and does not return.
Availability
XtError() has been superseded by XtAppError().
Description
XtError() passes its arguments to the installed low-level error handler. On POSIX systems, the default handler is _XtDefaultError(). It
prints the message to the stderr stream and calls exit().
Usage
XtError() has been superseded by XtAppError(), which performs the same function on a per-application context basis. XtError() now calls
XtAppError() passing the default application context created by XtInitialize(). Very few programs need multiple application contexts, and
you can continue to use XtError() if you initialize your application with XtInitialize(). We recommend, however, that you use XtAppIni-
tialize(), XtAppError(), and the other XtApp*() application context specific functions.
See XtAppError() for more information.
XtError() calls the "low-level" error handler. It is better to use XtAppErrorMsg() which calls the "high-level" error handler. The high-
level handler looks up the error message in a resource database and so allows for customization and internationalization of error messages.
See AlsoXtErrorMsg(1), XtSetErrorHandler(1), XtSetWarningMsg(1), XtWarning(1), XtWarningMsg(1).
Xt - Error Handling XtError()
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)