<reponame>stcstores/shopify_api<filename>shopify_api_py/exceptions.py<gh_stars>0
"""Exceptions for the shopify_api_py package."""
from typing import Any, Mapping


class LoginCredentialsNotSetError(ValueError):
    """Exception raised when creating an API session without credentials set."""

    def __init__(self, *args: list[Any], **kwargs: Mapping[str, Any]) -> None:
        """Exception raised when creating an API session without credentials set."""
        super().__init__("SHOP_URL, API_VERSION and API_PASSWORD must be set.")


class TooManyPageRequestsError(Exception):
    """Exception raised when a method requests too many pages from a paginated endpoint."""

    def __init__(self, *args: list[Any], **kwargs: Mapping[str, Any]) -> None:
        """Exception raised when creating an API session without credentials set."""
        super().__init__("Too many pages requested.")

"""Exceptions for the shopify_api_py package."""
from typing import Any, Mapping


class LoginCredentialsNotSetError(ValueError):
    """Exception raised when creating an API session without credentials set."""

    def __init__(self, *args: list[Any], **kwargs: Mapping[str, Any]) -> None:
        """Exception raised when creating an API session without credentials set."""
        super().__init__("SHOP_URL, API_VERSION and API_PASSWORD must be set.")


class TooManyPageRequestsError(Exception):
    """Exception raised when a method requests too many pages from a paginated endpoint."""

    def __init__(self, *args: list[Any], **kwargs: Mapping[str, Any]) -> None:
        """Exception raised when creating an API session without credentials set."""
        super().__init__("Too many pages requested.")
Exceptions for the shopify_api_py package. Exception raised when creating an API session without credentials set. Exception raised when creating an API session without credentials set. Exception raised when a method requests too many pages from a paginated endpoint. Exception raised when creating an API session without credentials set.