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

114 lines
1.2 KiB
Python
Raw Normal View History

2017-10-17 22:00:20 +00:00
base = '⚠️ **An internal error has occurred.** This has been reported to 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))
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(Exception):
pass
2017-10-13 02:26:22 +00:00
2017-10-15 17:30:40 +00:00
class MissingArgument(Exception):
pass
2017-10-15 17:30:40 +00:00
2017-10-16 06:06:50 +00:00
class FavoritesNotFound(Exception):
pass
2017-10-16 06:06:50 +00:00
2017-10-13 02:26:22 +00:00
class PostError(Exception):
pass
2017-10-13 02:26:22 +00:00
class ImageError(Exception):
pass
2017-10-13 02:26:22 +00:00
class MatchError(Exception):
pass
2017-10-13 02:26:22 +00:00
class TagBlacklisted(Exception):
pass
2017-10-13 02:26:22 +00:00
class BoundsError(Exception):
pass
2017-10-13 02:26:22 +00:00
class TagBoundsError(Exception):
pass
2017-10-13 02:26:22 +00:00
class TagExists(Exception):
pass
2017-10-13 02:26:22 +00:00
class TagError(Exception):
pass
2017-10-13 02:26:22 +00:00
class FlagError(Exception):
pass
2017-10-13 02:26:22 +00:00
class BlacklistError(Exception):
pass
2017-10-13 02:26:22 +00:00
class NotFound(Exception):
pass
2017-10-13 02:26:22 +00:00
class Timeout(Exception):
pass
2017-10-13 02:26:22 +00:00
class InvalidVideoFile(Exception):
pass
2017-10-13 02:26:22 +00:00
class MissingAttachment(Exception):
pass
2017-10-13 02:26:22 +00:00
class TooManyAttachments(Exception):
pass
2017-10-13 02:26:22 +00:00
class CheckFail(Exception):
pass
2017-10-13 02:26:22 +00:00
class Abort(Exception):
pass
2017-10-13 02:26:22 +00:00
class Continue(Exception):
pass