<HTML> <HEAD> <!-- Created by texi2html 1.56k from ../src/python-xlib.texi on 22 October 2013 --> <TITLE>The Python X Library - X Error Classes</TITLE> </HEAD> <BODY> Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_7.html">previous</A>, <A HREF="python-xlib_9.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>. <P><HR><P> <H2><A NAME="SEC7" HREF="python-xlib_toc.html#TOC7">X Error Classes</A></H2> <P> X errors are structured in the following class hierarchy: <PRE> Exception \_ error.XError \_ error.BadRequest \_ error.BadValue \_ error.BadAtom \_ error.BadMatch \_ error.BadAccess \_ error.BadAlloc \_ error.BadName \_ error.BadLength \_ error.BadImplementation \_ error.XResourceError \_ error.BadWindow \_ error.BadPixmap \_ error.BadCursor \_ error.BadFont \_ error.BadDrawable \_ error.BadColor \_ error.BadGC \_ error.BadIDChoice </PRE> <P> All error objects has the following attributes: <DL COMPACT> <DT><CODE>code</CODE> <DD> The numeric error code <DT><CODE>sequence_number</CODE> <DD> The sequence number of the failed request <DT><CODE>resource_id</CODE> <DD> The bad resource id. For all the <CODE>error.XResourceError</CODE> this is a X resource object. For the other errors it is an integer, which for some errors might have no meaning <DT><CODE>major_opcode</CODE> <DD> The major opcode for the failed request <DT><CODE>minor_opcode</CODE> <DD> The minor opcode for the failed request. This will be zero for all base X11R6 request, but will be interesting for extension requests </DL> <P><HR><P> Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_7.html">previous</A>, <A HREF="python-xlib_9.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>. </BODY> </HTML>