Skip to content

Commit

Permalink
Merge pull request #9 from ladyrassilon/feature/6_single_inheritance_…
Browse files Browse the repository at this point in the history
…of_errors

exceptions now inherit from PresserError
  • Loading branch information
ladyrassilon committed Oct 4, 2014
2 parents 6034560 + 72b7459 commit 18ee7cc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions presser/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@

class PresserJavaScriptParseError(Exception):
class PresserError(Exception):
pass

class PresserJavaScriptParseError(PresserError):
pass

class PresserInvalidVineIdError(Exception):
class PresserInvalidVineIdError(PresserError):
pass

class PresserURLError(Exception):
class PresserURLError(PresserError):
pass

class Presser404Error(Exception):
class Presser404Error(PresserError):
pass

class PresserRequestError(Exception):
class PresserRequestError(PresserError):
pass

0 comments on commit 18ee7cc

Please sign in to comment.