dump-mirrorbot/bot/helper/ext_utils/exceptions.py

18 lines
417 B
Python

class DriveAuthError(Exception):
pass
class MessageDeletedError(Exception):
""" Custom Exception class for killing thread as soon as they aren't needed"""
def __init__(self, message, error=None):
super().__init__(message)
self.error = error
class DownloadCancelled(Exception):
def __init__(self, message, error=None):
super().__init__(message)
self.error = error