X Version 11 (Release 6.1)

XmuPrintDefaultErrorMessage(X3xmu)


XmuPrintDefaultErrorMessage -- prints error message

Synopsis

cc . . . -lXmu

#include <X11/Xmu/Error.h>

int XmuPrintDefaultErrorMessage(dpy, event, fp) Display *dpy; XErrorEvent *event; FILE *fp;

int XmuSimpleErrorHandler(dpy, errorp) Display *dpy; XErrorEvent *errorp;

Arguments


dpy
Specifies the connection to the X server.

errorp
Specifies the error.

event
Specifies the error.

fp
Specifies where to print the error message.

Description

The XmuPrintDefaultErrorMessage function prints an error message, equivalent to Xlib's default error message for protocol errors. It returns a non-zero value if the caller should consider exiting, otherwise it returns 0. This function can be used when you need to write your own error handler, but need to print out an error from within that handler.

The XmuSimpleErrorHandler function ignores errors for BadWindow errors for XQueryTree and XGetWindowAttributes, and ignores BadDrawable errors for XGetGeometry; it returns 0 in those cases. Otherwise, it prints the default error message, and returns a non-zero value if the caller should consider exiting, and 0 if the caller should not exit.

References

XQueryTree(X3xlib), XGetWindowAttributes(X3xlib), XGetGeometry(X3xlib)
Xlib - C Language X Interface


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004