
     h(                         d dl m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	dS )    )unicode_literalsc                       e Zd ZdZdS )CoreAPIExceptionz4
    A base class for all `coreapi` exceptions.
    N__name__
__module____qualname____doc__     N/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/coreapi/exceptions.pyr   r                	Dr   r   c                       e Zd ZdZdS )
ParseErrorzB
    Raised when an invalid Core API encoding is encountered.
    Nr   r   r   r   r   r      r   r   r   c                       e Zd ZdZdS )NoCodecAvailablezR
    Raised when there is no available codec that can handle the given media.
    Nr   r   r   r   r   r      r   r   r   c                       e Zd ZdZdS )NetworkErrorzT
    Raised when the transport layer fails to make a request or get a response.
    Nr   r   r   r   r   r      r   r   r   c                       e Zd ZdZdS )LinkLookupErrorzF
    Raised when `.action` fails to index a link in the document.
    Nr   r   r   r   r   r   !   r   r   r   c                       e Zd ZdZdS )ParameterErrorz
    Raised when the parameters passed do not match the link fields.

    * A required field was not included.
    * An unknown field was included.
    * A field was passed an invalid type for the link location/encoding.
    Nr   r   r   r   r   r   (   s          	Dr   r   c                   $    e Zd ZdZd Zd Zd ZdS )ErrorMessagez>
    Raised when the transition returns an error message.
    c                     || _         d S N)error)selfr   s     r   __init__zErrorMessage.__init__7   s    


r   c                 J    | j         j        dt          | j                  dS )N())	__class__r   reprr   r   s    r   __repr__zErrorMessage.__repr__:   s(    >222D4D4D4D4DEEr   c                 *    t          | j                  S r   )strr   r%   s    r   __str__zErrorMessage.__str__=   s    4:r   N)r   r   r	   r
   r   r&   r)   r   r   r   r   r   3   sN           F F F    r   r   N)

__future__r   	Exceptionr   r   r   r   r   r   r   r   r   r   <module>r,      sM   ' ' ' ' ' '	 	 	 	 	y 	 	 		 	 	 	 	! 	 	 		 	 	 	 	' 	 	 		 	 	 	 	# 	 	 		 	 	 	 	& 	 	 		 	 	 	 	% 	 	 	    #     r   