o
    ABi
                     @   s   d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZG dd deZG dd deZ	dS )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d	Z  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                    s   t t| | || _dS zInitialize the exception.N)superr   __init__codeselfmessager   	__class__ V/var/www/html/Trade-python/venv/lib/python3.10/site-packages/kiteconnect/exceptions.pyr      s   
zKiteException.__init__r   __name__
__module____qualname____doc__r   __classcell__r   r   r   r   r      s    r   c                       r   )GeneralExceptionz4An unclassified, general error. Default code is 500.r   c                       t t| || dS r   )r   r   r   r   r   r   r   r         zGeneralException.__init__r   r   r   r   r   r   r          r   c                       r   )TokenExceptionzLRepresents all token and authentication related errors. Default code is 403.  c                    r   r   )r   r   r   r   r   r   r   r   &   r   zTokenException.__init__r   r   r   r   r   r   r   #   r   r   c                       r   )PermissionExceptionzORepresents permission denied exceptions for certain calls. Default code is 403.r   c                    r   r   )r   r   r   r   r   r   r   r   .   r   zPermissionException.__init__r   r   r   r   r   r   r   +   r   r   c                       r   )OrderExceptionzLRepresents all order placement and manipulation errors. Default code is 500.r   c                    r   r   )r   r   r   r   r   r   r   r   6   r   zOrderException.__init__r   r   r   r   r   r   r   3   r   r   c                       r   )InputExceptionzYRepresents user input errors such as missing and invalid parameters. Default code is 400.  c                    r   r   )r   r   r   r   r   r   r   r   >   r   zInputException.__init__)r    r   r   r   r   r   r   ;   r   r   c                       r   )DataExceptionz^Represents a bad response from the backend Order Management System (OMS). Default code is 502.  c                    r   r   )r   r!   r   r   r   r   r   r   F   r   zDataException.__init__)r"   r   r   r   r   r   r!   C   r   r!   c                       r   )NetworkExceptionzkRepresents a network issue between Kite and the backend Order Management System (OMS). Default code is 503.  c                    r   r   )r   r#   r   r   r   r   r   r   N   r   zNetworkException.__init__)r$   r   r   r   r   r   r#   K   r   r#   N)
r   	Exceptionr   r   r   r   r   r   r!   r#   r   r   r   r   <module>   s   
