[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher - Exceptions.py:1.1.2.2
Shane Hathaway
shane@digicool.com
Thu, 15 Nov 2001 10:15:28 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher
In directory cvs.zope.org:/tmp/cvs-serv1787
Modified Files:
Tag: Zope-3x-branch
Exceptions.py
Log Message:
Expanded exception hierarchy
=== Zope3/lib/python/Zope/Publisher/Exceptions.py 1.1.2.1 => 1.1.2.2 ===
-class NotFound (PublishingException):
-
- def __init__(self, ob, name):
+class TraversalException (PublishingException):
+ """
+ """
+ def __init__(self, ob, s):
self.ob = ob
- self.name = name
-
- def getOb(self):
- return self.ob
+ self.s = s
- def getName(self):
- return self.name
+class NotFound (TraversalException):
+ """
+ """
-class DebugError (PublishingException):
- def __init__(self, s):
- self.s = s
+class DebugError (TraversalException):
+ """
+ """
class BadRequest (PublishingException):
@@ -43,14 +42,14 @@
"""Raise this to retry a request
"""
- def __init__(self, t=None, v=None, tb=None):
- self._args = t, v, tb
+## def __init__(self, t=None, v=None, tb=None):
+## self._args = t, v, tb
- def reraise(self):
- t, v, tb = self._args
- if t is None: t=Retry
- if tb is None: raise t, v
- try: raise t, v, tb
- finally: tb=None
+## def reraise(self):
+## t, v, tb = self._args
+## if t is None: t=Retry
+## if tb is None: raise t, v
+## try: raise t, v, tb
+## finally: tb=None