Example #1
0
 def client_errors(self, exc):
     key = getattr(self, "error_lookup", {}).get(exc.id, "__all__")
     return format_client_error(key, exc)
Example #2
0
 def client_errors(self, exc):
     return self.form_errors(format_client_error('__all__', exc))
Example #3
0
 def client_errors(self, exc):
     key = getattr(self, 'error_lookup', {}).get(exc.id, '__all__')
     return format_client_error(key, exc)
Example #4
0
 def client_errors(self, exc):
     return self.form_errors(format_client_error('__all__', exc))