equal
deleted
inserted
replaced
47 class ApplicationError(Error): |
47 class ApplicationError(Error): |
48 """Raised by APIProxy in the event of an application-level error.""" |
48 """Raised by APIProxy in the event of an application-level error.""" |
49 def __init__(self, application_error, error_detail=''): |
49 def __init__(self, application_error, error_detail=''): |
50 self.application_error = application_error |
50 self.application_error = application_error |
51 self.error_detail = error_detail |
51 self.error_detail = error_detail |
|
52 Error.__init__(self, application_error) |
52 |
53 |
53 def __str__(self): |
54 def __str__(self): |
54 return 'ApplicationError: %d %s' % (self.application_error, |
55 return 'ApplicationError: %d %s' % (self.application_error, |
55 self.error_detail) |
56 self.error_detail) |
56 |
57 |