a
    ΝGd(                     @   s   d dl m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 )    )unicode_literalsc                   @   s   e Zd ZdZdS )CoreAPIExceptionz4
    A base class for all `coreapi` exceptions.
    N__name__
__module____qualname____doc__ r	   r	   N/var/www/html/django/DPS/env/lib/python3.9/site-packages/coreapi/exceptions.pyr      s   r   c                   @   s   e Zd ZdZdS )
ParseErrorzB
    Raised when an invalid Core API encoding is encountered.
    Nr   r	   r	   r	   r
   r      s   r   c                   @   s   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      s   r   c                   @   s   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      s   r   c                   @   s   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   !   s   r   c                   @   s   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   r   c                   @   s(   e Zd ZdZdd Zdd Zdd ZdS )	ErrorMessagez>
    Raised when the transition returns an error message.
    c                 C   s
   || _ d S N)error)selfr   r	   r	   r
   __init__7   s    zErrorMessage.__init__c                 C   s   d| j jt| jf S )Nz%s(%s))	__class__r   reprr   r   r	   r	   r
   __repr__:   s    zErrorMessage.__repr__c                 C   s
   t | jS r   )strr   r   r	   r	   r
   __str__=   s    zErrorMessage.__str__N)r   r   r   r   r   r   r   r	   r	   r	   r
   r   3   s   r   N)

__future__r   	Exceptionr   r   r   r   r   r   r   r	   r	   r	   r
   <module>   s   