ห
    8'h
  ใ                   ๓ธ    d 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 G d deซ      Z G d deซ      Z	y)z
    exceptions.py

    Exceptions raised by the Kite Connect client.

    :copyright: (c) 2021 by Zerodha Technology.
    :license: see LICENSE for details.
c                   ๓$     e Zd ZdZd fd	Z xZS )ฺKiteExceptionz็
    Base exception class representing a Kite client exception.

    Every specific Kite client exception is a subclass of this
    and  exposes two instance variables `.code` (HTTP error code)
    and `.message` (error text).
    c                 ๓:    t         t        |   |ซ       || _        yฉzInitialize the exception.N)ฺsuperr   ฺ__init__ฺcodeฉฺselfฺmessager   ฺ	__class__s      ๚R/var/www/html/trade_iq/venv/lib/python3.12/site-packages/kiteconnect/exceptions.pyr   zKiteException.__init__   s   ๘ ไmTั+จGิ4ุ	๓    ฉi๔  ฉฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__r   ฺ__classcell__ฉr   s   @r   r   r      s   ๘ ๑๗๑ r   r   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺGeneralExceptionz4An unclassified, general error. Default code is 500.c                 ๓.    t         t        |   ||ซ       yr   )r   r   r   r	   s      r   r   zGeneralException.__init__   ๓   ๘ ไิ ั.จwธี=r   r   r   r   s   @r   r   r      s   ๘ ู>๗>๑ >r   r   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺTokenExceptionzLRepresents all token and authentication related errors. Default code is 403.c                 ๓.    t         t        |   ||ซ       yr   )r   r   r   r	   s      r   r   zTokenException.__init__&   ๓   ๘ ไndั,จWฐdี;r   ฉi  r   r   s   @r   r   r   #   ๓   ๘ ูV๗<๑ <r   r   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺPermissionExceptionzORepresents permission denied exceptions for certain calls. Default code is 403.c                 ๓.    t         t        |   ||ซ       yr   )r   r"   r   r	   s      r   r   zPermissionException.__init__.   s   ๘ ไิ! 4ั1ฐ'ธ4ี@r   r   r   r   s   @r   r"   r"   +   s   ๘ ูY๗A๑ Ar   r"   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺOrderExceptionzLRepresents all order placement and manipulation errors. Default code is 500.c                 ๓.    t         t        |   ||ซ       yr   )r   r%   r   r	   s      r   r   zOrderException.__init__6   r   r   r   r   r   s   @r   r%   r%   3   r    r   r%   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺInputExceptionzYRepresents user input errors such as missing and invalid parameters. Default code is 400.c                 ๓.    t         t        |   ||ซ       yr   )r   r(   r   r	   s      r   r   zInputException.__init__>   r   r   )i  r   r   s   @r   r(   r(   ;   s   ๘ ูc๗<๑ <r   r(   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺDataExceptionz^Represents a bad response from the backend Order Management System (OMS). Default code is 502.c                 ๓.    t         t        |   ||ซ       yr   )r   r+   r   r	   s      r   r   zDataException.__init__F   s   ๘ ไmTั+จGฐTี:r   )i๖  r   r   s   @r   r+   r+   C   s   ๘ ูh๗;๑ ;r   r+   c                   ๓$     e Zd ZdZd fd	Z xZS )ฺNetworkExceptionzkRepresents a network issue between Kite and the backend Order Management System (OMS). Default code is 503.c                 ๓.    t         t        |   ||ซ       yr   )r   r.   r   r	   s      r   r   zNetworkException.__init__N   r   r   )i๗  r   r   s   @r   r.   r.   K   s   ๘ ูu๗>๑ >r   r.   N)
r   ฺ	Exceptionr   r   r   r"   r%   r(   r+   r.   ฉ r   r   ๚<module>r2      sl   ๐๑๔I๔ ๔>}๔ >๔<]๔ <๔A-๔ A๔<]๔ <๔<]๔ <๔;M๔ ;๔>}๕ >r   