Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
angel-one
GitHub Repository: angel-one/smartapi-python
Path: blob/main/SmartApi/__pycache__/smartExceptions.cpython-36.pyc
413 views
3

���_��@s�Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�ZdS)cseZdZd�fdd�	Z�ZS)�SmartAPIException��cstt|�j|�||_dS)zInitialize the exception.N)�superr�__init__�code)�self�messager)�	__class__��.C:\smartapi-python\SmartApi\smartExceptions.pyrszSmartAPIException.__init__)r)�__name__�
__module__�__qualname__r�
__classcell__r	r	)rr
rsrcs"eZdZdZd�fdd�	Z�ZS)�GeneralExceptionz4An unclassified, general error. Default code is 500.��cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
rszGeneralException.__init__)r)rrr
�__doc__rrr	r	)rr
r	srcs"eZdZdZd�fdd�	Z�ZS)�TokenExceptionzLRepresents all token and authentication related errors. Default code is 403.�cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
rszTokenException.__init__)r)rrr
rrrr	r	)rr
rsrcs"eZdZdZd�fdd�	Z�ZS)�PermissionExceptionzORepresents permission denied exceptions for certain calls. Default code is 403.�cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
rszPermissionException.__init__)r)rrr
rrrr	r	)rr
rsrcs"eZdZdZd�fdd�	Z�ZS)�OrderExceptionzLRepresents all order placement and manipulation errors. Default code is 500.��cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
r$szOrderException.__init__)r)rrr
rrrr	r	)rr
r!srcs"eZdZdZd�fdd�	Z�ZS)�InputExceptionzYRepresents user input errors such as missing and invalid parameters. Default code is 400.�cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
r,szInputException.__init__)r)rrr
rrrr	r	)rr
r)srcs"eZdZdZd�fdd�	Z�ZS)�
DataExceptionz^Represents a bad response from the backend Order Management System (OMS). Default code is 502.��cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
r4szDataException.__init__)r)rrr
rrrr	r	)rr
r1srcs"eZdZdZd�fdd�	Z�ZS)�NetworkExceptionzjRepresents a network issue between api and the backend Order Management System (OMS). Default code is 503.��cstt|�j||�dS)zInitialize the exception.N)rrr)rrr)rr	r
r<szNetworkException.__init__)r)rrr
rrrr	r	)rr
r9srN)	�	Exceptionrrrrrrrrr	r	r	r
�<module>s