2017-10-17 06:29:06 +00:00
|
|
|
base = '⚠️ **An internal error has occurred.** This has been reported.'
|
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
|