Skip to content

Commit

Permalink
All CheddarGetter exceptions now inherit from one common exception (M…
Browse files Browse the repository at this point in the history
…ouseTrap)
  • Loading branch information
Luke Sneeringer committed Jan 22, 2010
1 parent 596b9ba commit fcf4a6a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions exceptions.py
@@ -1,23 +1,26 @@
class NotFound(Exception): class MouseTrap(Exception):
pass

class NotFound(MouseTrap):
pass pass


class AuthorizationRequired(Exception): class AuthorizationRequired(MouseTrap):
pass pass


class Forbidden(Exception): class Forbidden(MouseTrap):
pass pass


class UnexpectedResponse(Exception): class UnexpectedResponse(MouseTrap):
pass pass


class BadRequest(Exception): class BadRequest(MouseTrap):
pass pass


class GatewayFailure(Exception): class GatewayFailure(MouseTrap):
pass pass


class GatewayConnectionError(Exception): class GatewayConnectionError(MouseTrap):
pass pass


class ValidationError(Exception): class ValidationError(MouseTrap):
pass pass

0 comments on commit fcf4a6a

Please sign in to comment.