]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wxPython/lib/PyCrust/wxd/Errors.py
Merged wxPython 2.4.x to the 2.5 branch (Finally!!!)
[wxWidgets.git] / wxPython / wxPython / lib / PyCrust / wxd / Errors.py
diff --git a/wxPython/wxPython/lib/PyCrust/wxd/Errors.py b/wxPython/wxPython/lib/PyCrust/wxd/Errors.py
new file mode 100644 (file)
index 0000000..e1b5fea
--- /dev/null
@@ -0,0 +1,25 @@
+"""Decorator classes for documentation and shell scripting.
+"""
+
+__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+
+# These are not the real wxPython classes. These are Python versions
+# for documentation purposes. They are also used to apply docstrings
+# to the real wxPython classes, which are SWIG-generated wrappers for
+# C-language classes.
+
+
+class PyAssertionError(AssertionError):
+    """"""
+    pass
+
+
+class PyDeadObjectError(AttributeError):
+    """Instances of wx objects that are OOR capable will have their
+    __class__ attribute changed to a _wxPyDeadObject class when the
+    C++ object is deleted.  Subsequent attempts to access object
+    attributes will raise this error, rather than segfault."""
+    pass