thirdparty/google_appengine/google/appengine/runtime/apiproxy_errors.py
changeset 1278 a7766286a7be
parent 109 620f9b141567
equal deleted inserted replaced
1277:5c931bd3dc1e 1278:a7766286a7be
    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