Ë
    T>{iR  ã                   ó  — d Z  G d„ de«      Z G d„ dee«      Z G d„ dee«      Z G d„ dee«      Z G d	„ d
ee	«      Z
 G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zd„ Zy)aˆ  
Cashfree Payment Gateway APIs

Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.

The version of the OpenAPI document: 2023-08-01
Contact: developers@cashfree.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
c                   ó   — e Zd ZdZy)ÚOpenApiExceptionz2The base exception class for all OpenAPIExceptionsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/exceptions.pyr   r      s   „ Ú<r	   r   c                   ó$   ‡ — e Zd Z	 	 dˆ fd„	Zˆ xZS )ÚApiTypeErrorc                 ó”   •— || _         || _        || _        |}|rdj                  |t	        |«      «      }t
        t        | �  |«       y)aÌ   Raises an exception for TypeErrors

        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (list): a list of keys an indices to get to the
                                 current_item
                                 None if unset
            valid_classes (tuple): the primitive classes that current item
                                   should be an instance of
                                   None if unset
            key_type (bool): False if our value is a value in a dict
                             True if it is a key in a dict
                             False if our item is an item in a list
                             None if unset
        ú
{0} at {1}N)Úpath_to_itemÚvalid_classesÚkey_typeÚformatÚrender_pathÚsuperr   Ú__init__)ÚselfÚmsgr   r   r   Úfull_msgÚ	__class__s         €r
   r   zApiTypeError.__init__   sJ   ø€ ð& )ˆÔØ*ˆÔØ ˆŒØˆÙØ#×*Ñ*¨3´¸LÓ0IÓJˆHÜŒl˜DÑ*¨8Õ4r	   ©NNN©r   r   r   r   Ú__classcell__©r   s   @r
   r   r      s   ø„ Ø=AØ÷5ñ 5r	   r   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚApiValueErrorc                 óx   •— || _         |}|rdj                  |t        |«      «      }t        t        | �  |«       y)zÎ
        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (list) the path to the exception in the
                received_data dict. None if unset
        r   N)r   r   r   r   r   r   ©r   r   r   r   r   s       €r
   r   zApiValueError.__init__1   s;   ø€ ð )ˆÔØˆÙØ#×*Ñ*¨3´¸LÓ0IÓJˆHÜŒm˜TÑ+¨HÕ5r	   ©Nr   r   s   @r
   r   r   0   s   ø„ ÷6ñ 6r	   r   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚApiAttributeErrorc                 óx   •— || _         |}|rdj                  |t        |«      «      }t        t        | �  |«       y)a  
        Raised when an attribute reference or assignment fails.

        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (None/list) the path to the exception in the
                received_data dict
        r   N)r   r   r   r   r$   r   r!   s       €r
   r   zApiAttributeError.__init__C   s<   ø€ ð )ˆÔØˆÙØ#×*Ñ*¨3´¸LÓ0IÓJˆHÜÔ Ñ/°Õ9r	   r"   r   r   s   @r
   r$   r$   B   s   ø„ ÷:ñ :r	   r$   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚApiKeyErrorc                 óx   •— || _         |}|rdj                  |t        |«      «      }t        t        | �  |«       y)zÄ
        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (None/list) the path to the exception in the
                received_data dict
        r   N)r   r   r   r   r'   r   r!   s       €r
   r   zApiKeyError.__init__V   s;   ø€ ð )ˆÔØˆÙØ#×*Ñ*¨3´¸LÓ0IÓJˆHÜŒk˜4Ñ)¨(Õ3r	   r"   r   r   s   @r
   r'   r'   U   s   ø„ ÷4ñ 4r	   r'   c                   ó   — e Zd Zdd„Zd„ Zy)ÚApiExceptionNc                 óÒ   — |rI|j                   | _         |j                  | _        |j                  | _        |j	                  «       | _        y || _         || _        d | _        d | _        y r"   )ÚstatusÚreasonÚdataÚbodyÚ
getheadersÚheaders)r   r,   r-   Ú	http_resps       r
   r   zApiException.__init__h   sV   € ÙØ#×*Ñ*ˆDŒKØ#×*Ñ*ˆDŒKØ!Ÿ™ˆDŒIØ$×/Ñ/Ó1ˆD�Là ˆDŒKØ ˆDŒKØˆDŒIØˆD�Lr	   c                 óú   — dj                  | j                  | j                  «      }| j                  r|dj                  | j                  «      z  }| j                  r|dj                  | j                  «      z  }|S )z#Custom error messages for exceptionz({0})
Reason: {1}
zHTTP response headers: {0}
zHTTP response body: {0}
)r   r,   r-   r1   r/   )r   Úerror_messages     r
   Ú__str__zApiException.__str__t   so   € ð(ß(.©¨t¯{©{¸D¿K¹KÓ(Hð 	à�<Š<ØÐ;×BÑBØ—‘óñ ˆMð �9Š9ØÐ8×?Ñ?ÀÇ	Á	ÓJÑJˆMàÐr	   r   )r   r   r   r   r5   r   r	   r
   r*   r*   f   s   „ ó
 ór	   r*   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚBadRequestExceptionc                 ó0   •— t         t        | �  |||«       y r"   )r   r7   r   ©r   r,   r-   r2   r   s       €r
   r   zBadRequestException.__init__ƒ   s   ø€ ÜÔ! 4Ñ1°&¸&À)ÕLr	   r   r   r   s   @r
   r7   r7   �   s   ø„ ÷Mñ Mr	   r7   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚNotFoundExceptionc                 ó0   •— t         t        | �  |||«       y r"   )r   r;   r   r9   s       €r
   r   zNotFoundException.__init__ˆ   s   ø€ ÜÔ Ñ/°¸À	ÕJr	   r   r   r   s   @r
   r;   r;   †   s   ø„ ÷Kñ Kr	   r;   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚUnauthorizedExceptionc                 ó0   •— t         t        | �  |||«       y r"   )r   r>   r   r9   s       €r
   r   zUnauthorizedException.__init__Ž   s   ø€ ÜÔ# TÑ3°F¸FÀIÕNr	   r   r   r   s   @r
   r>   r>   Œ   s   ø„ ÷Oñ Or	   r>   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚForbiddenExceptionc                 ó0   •— t         t        | �  |||«       y r"   )r   rA   r   r9   s       €r
   r   zForbiddenException.__init__”   s   ø€ ÜÔ  $Ñ0°¸ÀÕKr	   r   r   r   s   @r
   rA   rA   ’   s   ø„ ÷Lñ Lr	   rA   c                   ó    ‡ — e Zd Zdˆ fd„	Zˆ xZS )ÚServiceExceptionc                 ó0   •— t         t        | �  |||«       y r"   )r   rD   r   r9   s       €r
   r   zServiceException.__init__š   s   ø€ ÜÔ Ñ.¨v°v¸yÕIr	   r   r   r   s   @r
   rD   rD   ˜   s   ø„ ÷Jñ Jr	   rD   c                 óŠ   — d}| D ];  }t        |t        «      r|dj                  |«      z  }Œ(|dj                  |«      z  }Œ= |S )z)Returns a string representation of a pathÚ z[{0}]z['{0}'])Ú
isinstanceÚintr   )r   ÚresultÚpths      r
   r   r   ž   sO   € à€FØò ,ˆÜ�cœ3ÔØ�g—n‘n SÓ)Ñ)‰Fà�i×&Ñ& sÓ+Ñ+‰Fð	,ð
 €Mr	   N)r   Ú	Exceptionr   Ú	TypeErrorr   Ú
ValueErrorr   ÚAttributeErrorr$   ÚKeyErrorr'   r*   r7   r;   r>   rA   rD   r   r   r	   r
   ú<module>rQ      sª   ðñ
ô=�yô =ô5Ð# Yô 5ô:6Ð$ jô 6ô$:Ð(¨.ô :ô&4Ð" Hô 4ô"Ð#ô ô6M˜,ô Mô
K˜ô KôO˜Lô OôL˜ô LôJ�|ô Jór	   