Merge "Add some exception classes"

This commit is contained in:
Jenkins 2014-06-16 23:39:40 +00:00 committed by Gerrit Code Review
commit 29047192a5
1 changed files with 13 additions and 0 deletions

View File

@ -33,3 +33,16 @@ class EngineStoppedException(EntropyException):
"""Exception raised when engine is shutdown."""
def __init__(self, message):
super(EngineStoppedException, self).__init__(message)
class NoSuchEngineException(EntropyException):
"""Exception raised when performing operations on a non-existent engine.
"""
def __init__(self, message):
super(NoSuchEngineException, self).__init__(message)
class NoEnginesException(EntropyException):
"""Exception raised when there are no known engines."""
def __init__(self, message):
super(NoEnginesException, self).__init__(message)