1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-02 13:12:40 +00:00
modufur/src/main/misc/exceptions.py

106 lines
1.1 KiB
Python
Raw Normal View History

base = '⚠️ **An internal error has occurred.** Please notify my master! 🐺'
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-10-13 02:26:22 +00:00
class Left(Exception):
pass
class Right(Exception):
pass
class Save(Exception):
pass
class GoTo(Exception):
pass
class Exists(Exception):
pass
2017-10-15 17:30:40 +00:00
class MissingArgument(Exception):
pass
2017-10-16 06:06:50 +00:00
class FavoritesNotFound(Exception):
pass
2017-10-13 02:26:22 +00:00
class PostError(Exception):
pass
class ImageError(Exception):
pass
class MatchError(Exception):
pass
class TagBlacklisted(Exception):
pass
class BoundsError(Exception):
pass
class TagBoundsError(Exception):
pass
class TagExists(Exception):
pass
class TagError(Exception):
pass
class FlagError(Exception):
pass
class BlacklistError(Exception):
pass
class NotFound(Exception):
pass
class Timeout(Exception):
pass
class InvalidVideoFile(Exception):
pass
class MissingAttachment(Exception):
pass
class TooManyAttachments(Exception):
pass
class CheckFail(Exception):
pass
class Abort(Exception):
pass
class Continue(Exception):
pass