1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-27 23:37:27 +00:00
modufur/src/main/misc/exceptions.py

132 lines
1.7 KiB
Python
Raw Normal View History

from discord.ext.commands import errors as errext
base = '\N{WARNING SIGN} **An internal error has occurred.** This has been reported to my master. \N{WOLF FACE}'
2017-09-24 15:05:28 +00:00
2017-10-13 02:26:22 +00:00
2017-10-15 01:54:18 +00:00
async def send_error(ctx, error):
await ctx.send('{}\n```\n{}```'.format(base, error))
2017-11-09 03:32:48 +00:00
# class NSFW(errext.CheckFailure):
# pass
class SizeError(Exception):
pass
2017-11-09 03:32:48 +00:00
2017-11-06 07:04:17 +00:00
class Wrong(Exception):
pass
class Add(Exception):
pass
class Execute(Exception):
pass
class Evaluate(Exception):
pass
2017-10-15 01:54:18 +00:00
2017-10-13 02:26:22 +00:00
class Left(Exception):
pass
2017-10-13 02:26:22 +00:00
class Right(Exception):
pass
2017-10-13 02:26:22 +00:00
class Save(Exception):
pass
2017-10-13 02:26:22 +00:00
class GoTo(Exception):
pass
2017-10-13 02:26:22 +00:00
class Exists(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class MissingArgument(errext.CommandError):
pass
2017-10-15 17:30:40 +00:00
class FavoritesNotFound(errext.CommandError):
pass
2017-10-16 06:06:50 +00:00
class PostError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class ImageError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class MatchError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class TagBlacklisted(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class BoundsError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class TagBoundsError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class TagExists(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class TagError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class FlagError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class BlacklistError(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class NotFound(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class Timeout(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class InvalidVideoFile(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class MissingAttachment(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class TooManyAttachments(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class CheckFail(errext.CommandError):
pass
2017-10-13 02:26:22 +00:00
class Abort(Exception):
def __init__(self, message=None):
self.message = message
2017-10-13 02:26:22 +00:00
class Continue(Exception):
pass