HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/fastimport/__pycache__/errors.cpython-39.pyc
a

�+yW@�@s�dZdZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�Z	Gdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�Zd S)!z Exception classes for fastimportzline %(lineno)d: cs eZdZdZ�fdd�Z�ZS)�ImportError�>The base exception class for all import processing exceptions.cstt|��|j|j�dS�N)�superr�__init__�_fmt�__dict__)�self��	__class__��3/usr/lib/python3/dist-packages/fastimport/errors.pyrszImportError.__init__)�__name__�
__module__�__qualname__�__doc__r�
__classcell__rrr	rrsrc@s eZdZdZedZdd�ZdS)�ParsingErrorrzUnknown Import Parsing ErrorcCs||_t�|�dSr)�linenorr�rrrrrr#szParsingError.__init__N�r
rrr�
_LOCATION_FMTrrrrrrrsrc@s eZdZdZedZdd�ZdS)�MissingBytesz?Raised when EOF encountered while expecting to find more bytes.z=Unexpected EOF - expected %(expected)d bytes, found %(found)dcCs||_||_t�||�dSr)�expected�foundrr)rrrrrrrr.szMissingBytes.__init__Nrrrrrr(src@s eZdZdZedZdd�ZdS)�MissingTerminatorzARaised when EOF encountered while expecting to find a terminator.z5Unexpected EOF - expected '%(terminator)s' terminatorcCs||_t�||�dSr)�
terminatorrr)rrrrrrr:szMissingTerminator.__init__Nrrrrrr4s
�rc@s eZdZdZedZdd�ZdS)�InvalidCommandz%Raised when an unknown command found.zInvalid command '%(cmd)s'cCs||_t�||�dSr)�cmdrr)rrrrrrrDszInvalidCommand.__init__Nrrrrrr?src@s eZdZdZedZdd�ZdS)�MissingSectionz?Raised when a section is required in a command but not present.z.Command %(cmd)s is missing section %(section)scCs||_||_t�||�dSr)r�sectionrr)rrrrrrrrNszMissingSection.__init__NrrrrrrIsrc@s eZdZdZedZdd�ZdS)�	BadFormatz/Raised when a section is formatted incorrectly.zGBad format for section %(section)s in command %(cmd)s: found '%(text)s'cCs"||_||_||_t�||�dSr)rr�textrr)rrrrr!rrrrZszBadFormat.__init__Nrrrrrr Tsr c@s"eZdZdZedZddd�ZdS)�InvalidTimezonez=Raised when converting a string timezone to a seconds offset.z7Timezone %(timezone)r could not be converted.%(reason)sNcCs,||_|rd||_nd|_t�||�dS)N� �)�timezone�reasonrr)rrr%r&rrrrgs
zInvalidTimezone.__init__)Nrrrrrr"as
�r"c@s eZdZdZedZdd�ZdS)�PrematureEndOfStreamz9Raised when the 'done' feature was specified but missing.z Stream end before 'done' commandcCst�||�dSr)rrrrrrruszPrematureEndOfStream.__init__Nrrrrrr'psr'c@seZdZdZdZdd�ZdS)�UnknownDateFormatz,Raised when an unknown date format is given.z Unknown date format '%(format)s'cCs||_t�|�dSr)�formatrr)rr)rrrr~szUnknownDateFormat.__init__N�r
rrrrrrrrrr(ysr(c@seZdZdZdZdd�ZdS)�MissingHandlerz/Raised when a processor can't handle a command.z#Missing handler for command %(cmd)scCs||_t�|�dSr)rrr)rrrrrr�szMissingHandler.__init__Nr*rrrrr+�sr+c@seZdZdZdZdd�ZdS)�UnknownParameterz:Raised when an unknown parameter is passed to a processor.z1Unknown parameter - '%(param)s' not in %(knowns)scCs||_||_t�|�dSr)�param�knownsrr)rr-r.rrrr�szUnknownParameter.__init__Nr*rrrrr,�sr,c@seZdZdZdZdd�ZdS)�BadRepositorySizez@Raised when the repository has an incorrect number of revisions.zFBad repository size - %(found)d revisions found, %(expected)d expectedcCs||_||_t�|�dSr)rrrr)rrrrrrr�szBadRepositorySize.__init__Nr*rrrrr/�sr/c@seZdZdZdZdd�ZdS)�
BadRestartz9Raised when the import stream and id-map do not match up.zXBad restart - attempted to skip commit %(commit_id)s but matching revision-id is unknowncCs||_t�|�dSr)�	commit_idrr)rr1rrrr�szBadRestart.__init__Nr*rrrrr0�sr0c@seZdZdZdZdd�ZdS)�UnknownFeaturez<Raised when an unknown feature is given in the input stream.zNUnknown feature '%(feature)s' - try a later importer or an earlier data formatcCs||_t�|�dSr)�featurerr)rr3rrrr�szUnknownFeature.__init__Nr*rrrrr2�sr2N)rr�	Exceptionrrrrrrr r"r'r(r+r,r/r0r2rrrr�<module>s