mirror of
https://github.com/myned/modufur.git
synced 2024-12-23 22:27:27 +00:00
Converted appropriate exceptions to inherit CommandError
This commit is contained in:
parent
918a2229db
commit
9ed2c0a0ce
1 changed files with 21 additions and 19 deletions
|
@ -1,3 +1,5 @@
|
|||
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}'
|
||||
|
||||
|
||||
|
@ -41,79 +43,79 @@ class GoTo(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class Exists(Exception):
|
||||
class Exists(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class MissingArgument(Exception):
|
||||
class MissingArgument(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class FavoritesNotFound(Exception):
|
||||
class FavoritesNotFound(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class PostError(Exception):
|
||||
class PostError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class ImageError(Exception):
|
||||
class ImageError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class MatchError(Exception):
|
||||
class MatchError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class TagBlacklisted(Exception):
|
||||
class TagBlacklisted(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class BoundsError(Exception):
|
||||
class BoundsError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class TagBoundsError(Exception):
|
||||
class TagBoundsError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class TagExists(Exception):
|
||||
class TagExists(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class TagError(Exception):
|
||||
class TagError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class FlagError(Exception):
|
||||
class FlagError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class BlacklistError(Exception):
|
||||
class BlacklistError(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class NotFound(Exception):
|
||||
class NotFound(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class Timeout(Exception):
|
||||
class Timeout(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidVideoFile(Exception):
|
||||
class InvalidVideoFile(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class MissingAttachment(Exception):
|
||||
class MissingAttachment(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class TooManyAttachments(Exception):
|
||||
class TooManyAttachments(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
class CheckFail(Exception):
|
||||
class CheckFail(errext.CommandError):
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue