forked from bretwalker/pycheddar
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All CheddarGetter exceptions now inherit from one common exception (M…
…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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |