Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtAppSetWaB(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppError(1)

XtAppErrorMsg(1)

XtAppSetErrorHandler(1)

XtAppSetErrorMsgHandler(1)

XtAppSetWarningHandler(1)

XtAppSetWarningMsgHandler(1)

XtAppWarning(1)

XtAppWarningMsg(1)

XtErrorHandler(2)

XtErrorMsgHandler(2)

 

Name

XtAppSetWarningMsgHandler — register a procedure to be called on nonfatal error conditions. 

Synopsis

XtErrorMsgHandler XtAppSetWarningMsgHandler(app_context, msg_handler)

    XtAppContext app_context;
    XtErrorMsgHandler msg_handler;

Arguments

app_context
Specifies the application context.

msg_handler
Specifies the new nonfatal error procedure, which usually returns.

Description

XtAppSetWarningMsgHandler returns a pointer to the previously installed high-level warning handler.  The default high-level warning handler provided by the Intrinsics is named _XtDefaultWarningMsg and constructs a string from the error resource database and calls XtWarning.  Using XtAppSetWarningMsgHandler, you can replace this default handler with one of your own.  Note that if you simply want to change the way the message is displayed (rather than the way the message database is used), you should probably replace the low-level warning handler (using XtAppSetWarningHandler) instead. 

Note that application-context-specific error handling is not implemented on many systems.  Most implementations will have just one set of error handlers.  If they are set for different application contexts, the one performed last will prevail. 

See Also

XtAppError(1), XtAppErrorMsg(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarning(1), XtAppWarningMsg(1),
XtErrorHandler(2), XtErrorMsgHandler(2). 

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