Permalink
Browse files

All CheddarGetter exceptions now inherit from one common exception (M…

…ouseTrap)
  • Loading branch information...
1 parent 596b9ba commit fcf4a6a1c01ca124d979db37cbfde81a9e418a07 Luke Sneeringer committed Jan 22, 2010
Showing with 11 additions and 8 deletions.
  1. +11 −8 exceptions.py
View
@@ -1,23 +1,26 @@
-class NotFound(Exception):
+class MouseTrap(Exception):
+ pass
+
+class NotFound(MouseTrap):
pass
-class AuthorizationRequired(Exception):
+class AuthorizationRequired(MouseTrap):
pass
-class Forbidden(Exception):
+class Forbidden(MouseTrap):
pass
-class UnexpectedResponse(Exception):
+class UnexpectedResponse(MouseTrap):
pass
-class BadRequest(Exception):
+class BadRequest(MouseTrap):
pass
-class GatewayFailure(Exception):
+class GatewayFailure(MouseTrap):
pass
-class GatewayConnectionError(Exception):
+class GatewayConnectionError(MouseTrap):
pass
-class ValidationError(Exception):
+class ValidationError(MouseTrap):
pass

0 comments on commit fcf4a6a

Please sign in to comment.