""" Gitea-specific exceptions. """ class GiteaError(Exception): """Base exception for Gitea API operations.""" pass class GiteaAuthError(GiteaError): """Raised when authentication fails or token is missing.""" pass class GiteaNotFoundError(GiteaError): """Raised when requested resource is not found.""" pass class GiteaApiError(GiteaError): """Raised when API returns an error response.""" def __init__(self, message: str, status_code: int = None): super().__init__(message) self.status_code = status_code class GiteaConfigError(GiteaError): """Raised when Gitea configuration is invalid or missing.""" pass