Source code for moddb.errors

[docs] class ModdbException(Exception): """Standard exception raised when the moddb.Client encounters an error related to the request being made""" pass
[docs] class AwaitingAuthorisation(ModdbException): """This object is awaiting authorisation and can therefore not be accessed at the present time.""" pass
[docs] class Ratelimited(ModdbException): """You are being ratelimited internally by the library, please be respectful of the website and its creators.""" def __init__(self, message, remaining) -> None: super().__init__(message) self.remaining = remaining