Refactored

This commit is contained in:
jeroenops
2018-11-13 21:55:59 +01:00
commit b36df4384a
129 changed files with 14400 additions and 0 deletions

26
wo/core/exc.py Normal file
View File

@@ -0,0 +1,26 @@
"""WordOps exception classes."""
class WOError(Exception):
"""Generic errors."""
def __init__(self, msg):
Exception.__init__(self)
self.msg = msg
def __str__(self):
return self.msg
class WOConfigError(WOError):
"""Config related errors."""
pass
class WORuntimeError(WOError):
"""Generic runtime errors."""
pass
class WOArgumentError(WOError):
"""Argument related errors."""
pass