2016-04-19 17:40:59 +00:00
|
|
|
"""Bancho exceptions"""
|
|
|
|
# TODO: Prints in exceptions
|
|
|
|
class loginFailedException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class loginBannedException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class tokenNotFoundException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class channelNoPermissionsException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class channelUnknownException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class channelModeratedException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class noAdminException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class commandSyntaxException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class banchoConfigErrorException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class banchoMaintenanceException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class moderatedPMException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class userNotFoundException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class alreadyConnectedException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class stopSpectating(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class matchWrongPasswordException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class matchNotFoundException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class matchJoinErrorException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class matchCreateError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class banchoRestartingException(Exception):
|
|
|
|
pass
|
2016-05-19 18:17:20 +00:00
|
|
|
|
|
|
|
class apiException(Exception):
|
|
|
|
pass
|
2016-06-02 20:33:39 +00:00
|
|
|
|
|
|
|
class invalidArgumentsException(Exception):
|
|
|
|
pass
|
2016-06-07 20:46:31 +00:00
|
|
|
|
|
|
|
class messageTooLongWarnException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class messageTooLongException(Exception):
|
|
|
|
pass
|
2016-06-09 08:43:28 +00:00
|
|
|
|
|
|
|
class userSilencedException(Exception):
|
|
|
|
pass
|
2016-06-11 16:43:27 +00:00
|
|
|
|
|
|
|
class need2FAException(Exception):
|
|
|
|
pass
|
2016-07-03 18:51:19 +00:00
|
|
|
|
|
|
|
class userRestrictedException(Exception):
|
|
|
|
pass
|
2016-07-14 10:37:07 +00:00
|
|
|
|
|
|
|
class haxException(Exception):
|
|
|
|
pass
|
2016-07-20 09:59:53 +00:00
|
|
|
|
|
|
|
class forceUpdateException(Exception):
|
|
|
|
pass
|
2016-09-13 09:39:39 +00:00
|
|
|
|
|
|
|
class loginLockedException(Exception):
|
|
|
|
pass
|
2016-10-01 19:19:03 +00:00
|
|
|
|
|
|
|
class unknownStreamException(Exception):
|
|
|
|
pass
|