o
    wi                     @   s   d dl mZ ddlmZ ddlmZ dZe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G dd deZdS )    )Any   )PrismaError)AbstractResponse)EngineErrorBinaryNotFoundErrorMismatchedVersionsErrorEngineConnectionErrorEngineRequestErrorAlreadyConnectedErrorNotConnectedErrorUnprocessableEntityErrorc                   @      e Zd ZdS )r   N__name__
__module____qualname__ r   r   K/home/app/Keep/.python/lib/python3.10/site-packages/prisma/engine/errors.pyr          r   c                   @   r   )r   Nr   r   r   r   r   r      r   r   c                   @   r   )r   Nr   r   r   r   r   r      r   r   c                   @   r   )r   Nr   r   r   r   r   r   !   r   r   c                       s8   e Zd ZU eed< eed< dedef fddZ  ZS )r   gotexpectedc                   s2   t  d| d| dd d  || _|| _d S )NzExpected query engine version `z` but got `z`.
zQIf this is intentional then please set the PRISMA_PY_DEBUG_GENERATOR environment zvariable to 1 and try again.)super__init__r   r   )selfr   r   	__class__r   r   r   )   s   
z MismatchedVersionsError.__init__)r   r   r   str__annotations__r   __classcell__r   r   r   r   r   %   s   
 r   c                   @   r   )r	   Nr   r   r   r   r   r	   3   r   r	   c                       s0   e Zd ZU eed< dedef fddZ  ZS )r
   responsebodyc                    s"   || _ t |j d|  d S )Nz: )r    r   r   status)r   r    r!   r   r   r   r   :   s   zEngineRequestError.__init__)r   r   r   _AnyResponser   r   r   r   r   r   r   r   r
   7   s   
 r
   c                       s"   e Zd Zdef fddZ  ZS )r   r    c                    s   t  |d d S )NzError occurred, it is likely that the internal GraphQL query builder generated a malformed request.
Please create an issue at https://github.com/RobertCraigie/prisma-client-py/issues)r   r   )r   r    r   r   r   r   B   s   z!UnprocessableEntityError.__init__)r   r   r   r#   r   r   r   r   r   r   r   A   s    r   N)typingr   errorsr   Zhttp_abstractr   __all__r#   r   r   r   r   r   r	   r
   r   r   r   r   r   <module>   s    
