Started fleshing out doodles in xmlrpc.execute()

This commit is contained in:
Jason Gerard DeRose
2008-11-25 11:54:51 -07:00
parent 2d458a1233
commit 7350ccbffe
3 changed files with 54 additions and 4 deletions

View File

@@ -125,6 +125,9 @@ class HandledError(StandardError):
"""
Base class for errors that can be raised across a remote procecdure call.
"""
code = 1
def __init__(self, message=None, **kw):
self.kw = kw
if message is None:
@@ -132,12 +135,22 @@ class HandledError(StandardError):
StandardError.__init__(self, message)
class UnknownError(HandledError):
"""
Raised when the true error is not a handled error.
"""
format = _('An unknown internal error has occurred')
class CommandError(HandledError):
format = _('Unknown command %(name)r')
class RemoteCommandError(HandledError):
format = 'Server at %(uri)r has no command %(command)r'
format = 'Server at %(uri)r has no command %(name)r'
class UnknownHelpError(InvocationError):