-
-
Save josephcc/33e1354371436e653bee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class SwoopException(Exception): | |
| def msg(self): | |
| return self.__class__.__name__ | |
| class SwoopSuitesMissingException(SwoopException): | |
| def __init__(self, missing_suites): | |
| self.missing_suites = missing_suites | |
| def msg(self): | |
| return "%s %s:%s" % (super(SwoopSuitesMissingException, self).msg(), "Missing required suites: ", ", ".join(self.missing_suites)) | |
| print SwoopSuitesMissingException(['hi']).msg() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment