
    Vf	                         d Z ddlmZ ddlmZ ddlmZ  G d de      Z G d de      Zd	Z	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y)zN
exceptions
==========

A module that contains plotly's exception hierarchy.

    )absolute_import)to_native_utf8_string)PlotlyErrorc                       e Zd Zy)
InputErrorN__name__
__module____qualname__     `/var/www/html/software/conda/envs/catlas/lib/python3.12/site-packages/chart_studio/exceptions.pyr   r          r   r   c                       e Zd ZdZd Zd Zy)PlotlyRequestErrorz4General API error. Raised for *all* failed requests.c                 @    t        |      | _        || _        || _        y N)r   messagestatus_codecontent)selfr   r   r   s       r   __init__zPlotlyRequestError.__init__   s    ,W5&r   c                     | j                   S r   )r   )r   s    r   __str__zPlotlyRequestError.__str__   s    ||r   N)r	   r
   r   __doc__r   r   r   r   r   r   r      s    >
r   r   a  Hm... it looks like your column '{column_name}' hasn't been uploaded to Plotly yet. You need to upload your column to Plotly before you can assign it to '{reference}'.
To upload, try `plotly.plotly.grid_objs.upload` or `plotly.plotly.grid_objs.append_column`.
Questions? chris@plotly.comzgYikes, plotly grids currently can't have duplicate column names. Rename the column "{0}" and try again.c                       e Zd Zy)PlotlyLocalErrorNr   r   r   r   r   r   2   r   r   r   c                        e Zd Z fdZ xZS )PlotlyLocalCredentialsErrorc                 0    d}t         t        |   |       y )Na  
Couldn't find a 'username', 'api-key' pair for you on your local machine. To sign in temporarily (until you stop running Python), run:
>>> import plotly.plotly as py
>>> py.sign_in('username', 'api_key')

Even better, save your credentials permanently using the 'tools' module:
>>> import plotly.tools as tls
>>> tls.set_credentials_file(username='username', api_key='api-key')

For more help, see https://plotly.com/python.
)superr   r   )r   r   	__class__s     r   r   z$PlotlyLocalCredentialsError.__init__7   s    > 	 	)49'Br   )r	   r
   r   r   __classcell__)r"   s   @r   r   r   6   s    C Cr   r   c                       e Zd Zy)PlotlyServerErrorNr   r   r   r   r%   r%   J   r   r   r%   c                       e Zd Zy)PlotlyConnectionErrorNr   r   r   r   r'   r'   N   r   r   r'   c                       e Zd Zy)PlotlyCredentialErrorNr   r   r   r   r)   r)   R   r   r   r)   c                       e Zd Zy)PlotlyAccountErrorNr   r   r   r   r+   r+   V   r   r   r+   c                       e Zd Zy)PlotlyRateLimitErrorNr   r   r   r   r-   r-   Z   r   r   r-   N)r   
__future__r   chart_studio.api.utilsr   _plotly_utils.exceptionsr   r   r   COLUMN_NOT_YET_UPLOADED_MESSAGENON_UNIQUE_COLUMN_MESSAGEr   r   r%   r'   r)   r+   r-   r   r   r   <module>r3      s    ' 8 1	 		 	"  & 	{ 	C"2 C(	 		- 		- 		* 		, 	r   