o
    Ch                     @   sD   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 )	c                   @      e Zd ZdZdS )ImportExportErrorz-A generic exception for all others to extend.N__name__
__module____qualname____doc__ r   r   j/var/www/html/myvaluetrips/my_value_trip_new/venv/lib/python3.10/site-packages/import_export/exceptions.pyr          r   c                   @   r   )
FieldErrorz(Raised when a field encounters an error.Nr   r   r   r   r	   r      r
   r   c                   @   r   )WidgetErrorz6Raised when there is a misconfiguration with a Widget.Nr   r   r   r   r	   r      r
   r   c                   @   s   e Zd ZdddZdd ZdS )ImportErrorNc                 C   s   || _ || _|| _dS )a  A wrapper for errors thrown from the import process.

        :param error: The underlying error that occurred.
        :param number: The row number of the row containing the error (if obtainable).
        :param row: The row containing the error (if obtainable).
        N)errornumberrow)selfr   r   r   r   r   r	   __init__   s   
zImportError.__init__c                 C   sJ   d}| j d ur|| j  d7 }|| j 7 }| jd ur#|d| j d7 }|S )N z: z ())r   r   r   )r   sr   r   r	   __str__   s   

zImportError.__str__)NN)r   r   r   r   r   r   r   r   r	   r      s    
r   N)	Exceptionr   r   r   r   r   r   r   r	   <module>   s    