Create exceptions.py

Co-authored-by: the-cult-of-integral <98130822+the-cult-of-integral@users.noreply.github.com>
This commit is contained in:
mouadessalim 2022-09-27 20:26:33 +01:00 committed by GitHub
parent 8959af35ee
commit 0b6bacbb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
exceptions.py Normal file
View File

@ -0,0 +1,19 @@
class QRCodeNotFound(Exception):
"""This exception should be raised if a QR code can not be found
on the Discord login page.
"""
pass
class InvalidToken(Exception):
"""This exception should be raised if a token does not receive
a response status code of 200 when tested against Discord's API.
"""
pass
class WebhookSendFailure(Exception):
"""This exception should be raised if the token webhook fails
to send, for whatever reason.
"""
pass