]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/wxd/Errors.py
1 """Decorator classes for documentation and shell scripting.
4 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __revision__
= "$Revision$"[11:-2]
9 # These are not the real wxPython classes. These are Python versions
10 # for documentation purposes. They are also used to apply docstrings
11 # to the real wxPython classes, which are SWIG-generated wrappers for
15 class PyAssertionError(AssertionError):
20 class PyDeadObjectError(AttributeError):
21 """Instances of wx objects that are OOR capable will have their
22 __class__ attribute changed to a _wxPyDeadObject class when the
23 C++ object is deleted. Subsequent attempts to access object
24 attributes will raise this error, rather than segfault."""