GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing python-xlib.github.io — The Python X Library: 4 Error Handling
4 Error HandlingIf an X object method generates an error, it will be handled in one of two different ways depending on the kind of method. Errors are represented by X error objects in the Xlib. If the method does not return data, the error will most likely be
detected after the method has returned. All methods which does not
return data has a parameter called The error handler is called with to arguments: the error object and the
low-level request object. The error must not do call any X
object methods. If that is necessary, the error handler must store the
error away for later retrieval. The class If no error handler is given when calling a method which generates an
error, the error will be passed to the default error handler. If no
default error handler is specified, the error is simply printed on
If the method does return data, the error will make it impossible for it to return any valid data. An exception is raised with the error object as the exception value. It is not passed to any error handlers.
This document was generated on September 16, 2020 using texi2html 5.0.
| ||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |