Zum Hauptinhalt springen

Errors

In general, when a request terminates with an error, the request has no side effects (i.e., there is no partial execution). The only requests for which this is not true are ChangeWindowAttributes, ChangeGC, PolyText8, PolyText16, FreeColors, StoreColors, and ChangeKeyboardControl.

The following error codes can be returned by the various requests​

Access​

An attempt to grab a key/button combination already grabbed by another client.

An attempt to free a colormap entry not allocated by the client.

An attempt to store into a read-only or an unallocated colormap entry.

An attempt to modify the access control list from other than the local (or otherwise authorized) host.

An attempt to select an event type, that at most one client can select at a time, when another client has already selected it.

Alloc​

The server failed to allocate the requested resource.

Note that this only covers allocation errors at a very coarse level, and is not intended to (nor can it in practice hope to) cover all cases of a server running out of allocation space in the middle of service.

The semantics when a server runs out of allocation space are left unspecified.

Atom​

A value for an ATOM argument does not name a defined ATOM.

Colormap​

A value for a COLORMAP argument does not name a defined COLORMAP.

Cursor​

A value for a CURSOR argument does not name a defined CURSOR.

Drawable​

A value for a DRAWABLE argument does not name a defined WINDOW or PIXMAP.

Font​

A value for a FONT or argument does not name a defined FONT.

GContext​

A value for a GCONTEXT argument does not name a defined GCONTEXT.

IDChoice​

The value chosen for a resource identifier is either not included in the range assigned to the client, or is already in use.

Implementation​

The server does not implement some aspect of the request. A server which generates this error for a core request is deficient. As such, this error is not listed for any of the requests, but clients should be prepared to receive such errors, and handle or discard them.

Length​

The length of a request is shorter or longer than that required to minimally contain the arguments.

Match​

An InputOnly window is used as a DRAWABLE.

Some argument (or pair of arguments) has the correct type and range, but fails to "match" in some other way required by the request.

Name​

A font or color of the specified name does not exist.

Pixmap​

A value for a PIXMAP argument does not name a defined PIXMAP.

Property​

The requested property does not exist for the specified window.

Request​

The major or minor opcode does not specify a valid request.

Value​

Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.

Window​

A value for a WINDOW argument does not name a defined WINDOW.

Note:  the Atom, Colormap, Cursor, Drawable, Font, GContext, Pixmap,

and Window errors are also used when the argument type is extended by union with a set of fixed alternatives, e.g.,.