Source code for slackminion.exceptions
[docs]class DuplicateCommandError(Exception): # pragma: nocover
def __init__(self, name):
self.name = name
def __str__(self):
return "Command already defined: %s" % self.name
[docs]class DuplicatePluginError(Exception): # pragma: nocover
def __init__(self, name):
self.name = name
def __str__(self):
return "Plugin already defined: %s" % self.name
[docs]class NotSetupError(Exception): # pragma: nocover
def __str__(self):
return "Bot not setup. Please run start() before run()."