Add exceptions

This commit is contained in:
Joscha 2016-05-23 02:48:45 +02:00
parent de3ca975a2
commit 145cbe5fe2
2 changed files with 42 additions and 0 deletions

41
yaboli/exceptions.py Normal file
View file

@ -0,0 +1,41 @@
class YaboliException(Exception):
"""
Generic yaboli exception class.
"""
pass
class BotManagerException(YaboliException):
"""
Generic BotManager exception class.
"""
pass
class CreateBotException(BotManagerException):
"""
This exception will be raised when BotManager could not create a bot.
"""
pass
class BotNotFoundException(BotManagerException):
"""
This exception will be raised when BotManager could not find a bot.
"""
pass
class BotException(YaboliException):
"""
Generic Bot exception class.
"""
pass
class ParseMessageException(BotException):
"""
This exception will be raised when a failure parsing a message occurs.
"""
pass