o
    ½w[e—  ã                   @   s®  d 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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G dd„ de
ƒZG dd„ de
ƒZ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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/d0„ d0eƒZG d1d2„ d2eƒZG d3d4„ d4eƒZd5S )6z email package exception classes.c                   @   ó   e Zd ZdZdS )ÚMessageErrorz+Base class for errors in the email package.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú#/usr/lib/python3.10/email/errors.pyr      ó    r   c                   @   r   )ÚMessageParseErrorz&Base class for message parsing errors.Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚHeaderParseErrorzError while parsing headers.Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚBoundaryErrorz#Couldn't find terminating boundary.Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚMultipartConversionErrorz(Conversion to a multipart is prohibited.Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚCharsetErrorzAn illegal charset was given.Nr   r   r   r   r	   r      r
   r   c                       s"   e Zd ZdZd‡ fdd„	Z‡  ZS )ÚMessageDefectz Base class for a message defect.Nc                    s   |d ur
t ƒ  |¡ || _d S ©N)ÚsuperÚ__init__Úline)Úselfr   ©Ú	__class__r   r	   r   $   s   
zMessageDefect.__init__r   ©r   r   r   r   r   Ú__classcell__r   r   r   r	   r   !   s    r   c                   @   r   )ÚNoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nr   r   r   r   r	   r   )   r
   r   c                   @   r   )ÚStartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nr   r   r   r   r	   r   ,   r
   r   c                   @   r   )ÚCloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nr   r   r   r   r	   r   /   r
   r   c                   @   r   )Ú#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nr   r   r   r   r	   r   2   r
   r   c                   @   r   )ÚMisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nr   r   r   r   r	   r   5   r
   r   c                   @   r   )Ú MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nr   r   r   r   r	   r   8   r
   r   c                   @   r   )Ú!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nr   r   r   r   r	   r    =   r
   r    c                   @   r   )Ú-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nr   r   r   r   r	   r!   @   r
   r!   c                   @   r   )ÚUndecodableBytesDefectz0Header contained bytes that could not be decodedNr   r   r   r   r	   r"   C   r
   r"   c                   @   r   )ÚInvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNr   r   r   r   r	   r#   F   r
   r#   c                   @   r   )ÚInvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNr   r   r   r   r	   r$   I   r
   r$   c                   @   r   )ÚInvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)Nr   r   r   r   r	   r%   L   r
   r%   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚHeaderDefectzBase class for a header defect.c                    s   t ƒ j|i |¤Ž d S r   )r   r   )r   ÚargsÚkwr   r   r	   r   T   s   zHeaderDefect.__init__r   r   r   r   r	   r&   Q   s    r&   c                   @   r   )ÚInvalidHeaderDefectz+Header is not valid, message gives details.Nr   r   r   r   r	   r)   W   r
   r)   c                   @   r   )ÚHeaderMissingRequiredValuez(A header that must have a value had noneNr   r   r   r   r	   r*   Z   r
   r*   c                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚNonPrintableDefectz8ASCII characters outside the ascii-printable range foundc                    s   t ƒ  |¡ || _d S r   )r   r   Únon_printables)r   r,   r   r   r	   r   `   s   
zNonPrintableDefect.__init__c                 C   s   d  | j¡S )Nz6the following ASCII non-printables found in header: {})Úformatr,   )r   r   r   r	   Ú__str__d   s   ÿzNonPrintableDefect.__str__)r   r   r   r   r   r.   r   r   r   r   r	   r+   ]   s    r+   c                   @   r   )ÚObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nr   r   r   r   r	   r/   h   r
   r/   c                   @   r   )ÚNonASCIILocalPartDefectz(local_part contains non-ASCII charactersNr   r   r   r   r	   r0   k   r
   r0   c                   @   r   )ÚInvalidDateDefectz%Header has unparsable or invalid dateNr   r   r   r   r	   r1   p   r
   r1   N)r   Ú	Exceptionr   r   r   r   Ú	TypeErrorr   r   Ú
ValueErrorr   r   r   r   r   r   r   ÚMalformedHeaderDefectr    r!   r"   r#   r$   r%   r&   r)   r*   r+   r/   r0   r1   r   r   r   r	   Ú<module>   s8   