"""Exceptions raised by the Synup SDK."""

from __future__ import annotations


class SynupAPIError(Exception):
    """Raised when the API returns a non-2xx response."""

    def __init__(self, message: str, status_code: int | None = None, response_body: str | None = None):
        self.status_code = status_code
        self.response_body = response_body
        super().__init__(message)
