Files
WPIQ/wo/core/exc.py
2018-11-13 21:55:59 +01:00

27 lines
448 B
Python

"""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