o
    ÚtBh  ã                   @   s   G d d„ de ƒZdS )c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚAPIExceptionz×Class that handles HTTP Exceptions when fetching API Endpoints.

    Attributes:
        response_code (int): The status code of the response.
        response (HttpResponse): The HttpResponse of the API call.

    c                    s(   t t| ƒ |¡ || _|| _|j| _dS )zñConstructor for the APIException class

        Args:
            reason (string): The reason (or error message) for the Exception
                to be raised.
            response (HttpResponse): The HttpResponse of the API call.

        N)Úsuperr   Ú__init__ÚreasonÚresponseÚstatus_codeÚresponse_code)Úselfr   r   ©Ú	__class__© úv/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/square/exceptions/api_exception.pyr      s   zAPIException.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r	   r   r      s    r   N)Ú	Exceptionr   r   r   r   r   Ú<module>   s   