""" Custom exceptions for the YouTube Content ID connector. """ class NotFound(Exception): """Raised when an asset is not found.""" class BadRequest(Exception): """Raised when the request is invalid (e.g. due to wrong credentials)""" class InternalServerError(Exception): """Raised when the server encounters an internal error.""" class APIQuotaExceeded(Exception): """Raised when the API quota is exceeded.""" def __init__(self): super().__init__("YT CID API quota exceeded. Try again later.")