
    ,i                         d dl mZ ddlmZ ddlmZ dZe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 G d de      Z G d de      Zy)    )Any   )PrismaError)AbstractResponse)EngineErrorBinaryNotFoundErrorMismatchedVersionsErrorEngineConnectionErrorEngineRequestErrorAlreadyConnectedErrorNotConnectedErrorUnprocessableEntityErrorc                       e Zd Zy)r   N__name__
__module____qualname__     Y/var/www/html/langgraph-service/venv/lib/python3.12/site-packages/prisma/engine/errors.pyr   r          r   r   c                       e Zd Zy)r   Nr   r   r   r   r   r      r   r   r   c                       e Zd Zy)r   Nr   r   r   r   r   r      r   r   r   c                       e Zd Zy)r   Nr   r   r   r   r   r   !   r   r   r   c                   >     e Zd ZU eed<   eed<   dedef fdZ xZS )r	   gotexpectedc                Z    t         |   d| d| ddz   dz          || _        || _        y )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__s      r   r    z MismatchedVersionsError.__init__)   sC    -hZ{3%tLab,-	

 !r   )r   r   r   str__annotations__r    __classcell__r"   s   @r   r	   r	   %   s%    	HMC c  r   r	   c                       e Zd Zy)r
   Nr   r   r   r   r
   r
   3   r   r   r
   c                   4     e Zd ZU eed<   dedef fdZ xZS )r   responsebodyc                 P    || _         t        | 	  |j                   d|        y )Nz: )r)   r   r    status)r!   r)   r*   r"   s      r   r    zEngineRequestError.__init__:   s)      	HOO,Btf56r   )r   r   r   _AnyResponser$   r#   r    r%   r&   s   @r   r   r   7   s!    7 7S 7 7r   r   c                   $     e Zd Zdef fdZ xZS )r   r)   c                 &    t         |   |d       y )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"   s     r   r    z!UnprocessableEntityError.__init__B   s    e	
r   )r   r   r   r-   r    r%   r&   s   @r   r   r   A   s    	
 	
 	
r   r   N)typingr   errorsr   http_abstractr   __all__r-   r   r   r   r   r	   r
   r   r   r   r   r   <module>r4      s       ,	  $	+ 		+ 		K 		 	k 	K 	7 7

1 

r   