Skip to content

Commit

Permalink
Merge pull request #14 from AlexandreDecan/base-exception
Browse files Browse the repository at this point in the history
Add a BaseException that is inherited by other ones
  • Loading branch information
freakboy3742 committed Jul 17, 2016
2 parents b6597fa + a178e88 commit 27ba4a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cassowary/error.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
from __future__ import print_function, unicode_literals, absolute_import, division


class InternalError(Exception):
class CassowaryException(Exception):
pass


class ConstraintNotFound(Exception):
class InternalError(CassowaryException):
pass


class RequiredFailure(Exception):
class ConstraintNotFound(CassowaryException):
pass


class RequiredFailure(CassowaryException):
pass

0 comments on commit 27ba4a0

Please sign in to comment.