Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSeErrHan(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XSynchronize(3X)

XSetErrorHandler(3X)  —  X Version 11

NAME

XSetErrorHandler, XGetErrorText, XGetErrorDatabaseText, XDisplayName, XSetIOErrorHandler − default error handlers

SYNTAX

XSetErrorHandler(handler)
      int (∗handler)(Display ∗, XErrorEvent ∗)

XGetErrorText(display, code, buffer_return, length)
      Display ∗display;
      int code;
      char ∗buffer_return;
      int length;

char ∗XDisplayName(string)
      char ∗string;

XSetIOErrorHandler(handler)
      int (∗handler)(Display ∗);

XGetErrorDatabaseText(display, name, message, default_string, buffer_return, length)
      Display display;
      char ∗name, ∗message;
      char ∗default_string;
      char ∗buffer_return;
      int length;

ARGUMENTS

bufferSpecifies the buffer that you want the error message stored in. 

codeSpecifies the error code for which you want to obtain a description. 

default_string
Specifies the default error message.

displaySpecifies the connection to the X server. 

handlerSpecifies the program’s supplied error handler. 

lengthSpecifies the size of the buffer. 

messageSpecifies the type of the error message. 

nameSpecifies the name of the application. 

nbytesSpecifies the number of bytes available in the buffer. 

stringSpecifies the character string. 

DESCRIPTION

The XSetErrorHandler function handles error events.

The XGetErrorText function copies a null-terminated string describing the specified error code into the specified buffer.

The XDisplayName function returns the name of the display that you are currently using.

The XSetIOErrorHandler sets the fatal IO error handler.

The XGetErrorDatabaseText function returns a message (or the default message) from the error message database.

SEE ALSO

XSynchronize(3X)
Xlib − C Language X Interface

1 March 1988

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