
    gO                          G d  de       Zy)c                   B     e Zd Z	 	 	 d	 d fdZdefdZdefdZ xZS )CohereErrorreturnc                 ^    t         t        |   |       || _        || _        |xs i | _        y )N)superr   __init__messagehttp_statusheaders)selfr   r	   r
   	__class__s       `/var/www/openai/venv/lib/python3.12/site-packages/cohere/manually_maintained/cohere_aws/error.pyr   zCohereError.__init__   s.     	k4)'2&}"    c                 &    | j                   xs d}|S )Nz<empty message>)r   )r   msgs     r   __str__zCohereError.__str__   s    ll//
r   c                 h    | j                   j                  d| j                  d| j                  dS )Nz	(message=z, http_status=))r   __name__r   r	   )r   s    r   __repr__zCohereError.__repr__   s)    NN##LL
 	
r   )NNN)r   N)r   
__module____qualname__r   strr   r   __classcell__)r   s   @r   r   r      s5     	
%
 

% 
# 
r   r   N)	Exceptionr    r   r   <module>r      s   
) 
r   