File: //kunden/lib/python3/dist-packages/fastimport/__pycache__/errors.cpython-39.pyc
a
�+yW@ � @ s� d Z dZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�Z G dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zd S )!z Exception classes for fastimportzline %(lineno)d: c s e Zd ZdZ� fdd�Z� ZS )�ImportError�>The base exception class for all import processing exceptions.c s t t| ��| j| j � d S �N)�superr �__init__�_fmt�__dict__)�self�� __class__� �3/usr/lib/python3/dist-packages/fastimport/errors.pyr s zImportError.__init__)�__name__�
__module__�__qualname__�__doc__r �
__classcell__r r r r r s r c @ s e Zd ZdZed Zdd� ZdS )�ParsingErrorr zUnknown Import Parsing Errorc C s || _ t�| � d S r )�linenor r �r r r r r r # s zParsingError.__init__N�r
r r r �
_LOCATION_FMTr r r r r r r s r c @ s e Zd ZdZed Zdd� ZdS )�MissingBytesz?Raised when EOF encountered while expecting to find more bytes.z=Unexpected EOF - expected %(expected)d bytes, found %(found)dc C s || _ || _t�| |� d S r )�expected�foundr r )r r r r r r r r . s zMissingBytes.__init__Nr r r r r r ( s r c @ s e Zd ZdZed Zdd� ZdS )�MissingTerminatorzARaised when EOF encountered while expecting to find a terminator.z5Unexpected EOF - expected '%(terminator)s' terminatorc C s || _ t�| |� d S r )�
terminatorr r )r r r r r r r : s zMissingTerminator.__init__Nr r r r r r 4 s
�r c @ s e Zd ZdZed Zdd� ZdS )�InvalidCommandz%Raised when an unknown command found.zInvalid command '%(cmd)s'c C s || _ t�| |� d S r )�cmdr r )r r r r r r r D s zInvalidCommand.__init__Nr r r r r r ? s r c @ s e Zd ZdZed Zdd� ZdS )�MissingSectionz?Raised when a section is required in a command but not present.z.Command %(cmd)s is missing section %(section)sc C s || _ || _t�| |� d S r )r �sectionr r )r r r r r r r r N s zMissingSection.__init__Nr r r r r r I s r c @ s e Zd ZdZed Zdd� ZdS )� BadFormatz/Raised when a section is formatted incorrectly.zGBad format for section %(section)s in command %(cmd)s: found '%(text)s'c C s"