Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtError(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtErrorMsg(1)

XtSetErrorHandler(1)

XtSetWarningMsg(1)

XtWarning(1)

XtWarningMsg(1)

 

Name

XtError — call the low-level fatal error handler. 

Synopsis

void XtError(message)

    String message;

Arguments

messageSpecifies the message to be reported. 

Description

XtError is superseded by XtAppError.  Xt provides two levels of error handling:

•A high-level interface that takes an error name and class and looks the error up in an error resource database. 

•A low-level interface that takes a simple string, which is printed out as the error message. 

Application-context-specific error handling is not implemented on many systems.  Most implementations will have just one set of error handlers.  If different handlers are set for different application contexts, the one set last may be used. 

In theory, most programs should use XtAppErrorMsg, not XtAppError, so that the programs can be easily customized to provide international or other custom error messages.  However, the low-level handlers are much easier to use. 

XtAppError calls the low-level fatal error handler.  Fatal errors are assumed to be catastrophic and irrecoverable.  A warning error handler also exists for errors that require attention but do not preempt a program running correctly to a normal successful completion.  (XtAppWarning calls the corresponding nonfatal error handler.  XtAppErrorMsg and XtAppWarningMsg call the corresponding high-level handlers.) 

See Also

XtErrorMsg(1), XtSetErrorHandler(1), XtSetWarningMsg(1), XtWarning(1), XtWarningMsg(1). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026