
    d                        d Z  G d de          Z G d de          Z G d de          Z G d de          Z G d	 d
ee          Z G d de          Z G d de	          Z
 G d de
          Z G d de
          Z G d de
          Z G d de
          Z G d de
          Z G d de
          ZeZ G d de
          Z G d de
          Z G d d e
          Z G d! d"e
          Z G d# d$e
          Z G d% d&e
          Z G d' d(e
          Z G d) d*e          Z G d+ d,e          Z G d- d.e          Z G d/ d0e          Z G d1 d2e          Z G d3 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__       /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/email/errors.pyr   r              5555r
   r   c                       e Zd ZdZdS )MessageParseErrorz&Base class for message parsing errors.Nr   r	   r
   r   r   r      s        0000r
   r   c                       e Zd ZdZdS )HeaderParseErrorzError while parsing headers.Nr   r	   r
   r   r   r      s        &&&&r
   r   c                       e Zd ZdZdS )BoundaryErrorz#Couldn't find terminating boundary.Nr   r	   r
   r   r   r      s        ----r
   r   c                       e Zd ZdZdS )MultipartConversionErrorz(Conversion to a multipart is prohibited.Nr   r	   r
   r   r   r              2222r
   r   c                       e Zd ZdZdS )CharsetErrorzAn illegal charset was given.Nr   r	   r
   r   r   r      s        ''''r
   r   c                   $     e Zd ZdZd fd	Z xZS )MessageDefectz Base class for a message defect.Nc                 \    |!t                                          |           || _        d S N)super__init__line)selfr   	__class__s     r   r   zMessageDefect.__init__$   s,    GGT"""			r
   r   r   r   r   r   r   __classcell__r    s   @r   r   r   !   sC        **         r
   r   c                       e Zd ZdZdS )NoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nr   r	   r
   r   r%   r%   )   s        LLLLr
   r%   c                       e Zd ZdZdS )StartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nr   r	   r
   r   r'   r'   ,   r   r
   r'   c                       e Zd ZdZdS )CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nr   r	   r
   r   r)   r)   /           OOOOr
   r)   c                       e Zd ZdZdS )#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nr   r	   r
   r   r,   r,   2   s        EEEEr
   r,   c                       e Zd ZdZdS )MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nr   r	   r
   r   r.   r.   5           IIIIr
   r.   c                       e Zd ZdZdS ) MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nr   r	   r
   r   r1   r1   8   r*   r
   r1   c                       e Zd ZdZdS )!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nr   r	   r
   r   r3   r3   =   r/   r
   r3   c                       e Zd ZdZdS )-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nr   r	   r
   r   r5   r5   @   r*   r
   r5   c                       e Zd ZdZdS )UndecodableBytesDefectz0Header contained bytes that could not be decodedNr   r	   r
   r   r7   r7   C           ::::r
   r7   c                       e Zd ZdZdS )InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNr   r	   r
   r   r:   r:   F   s        9999r
   r:   c                       e Zd ZdZdS )InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNr   r	   r
   r   r<   r<   I   s        GGGGr
   r<   c                       e Zd ZdZdS )InvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)Nr   r	   r
   r   r>   r>   L   s        >>>>r
   r>   c                   "     e Zd ZdZ fdZ xZS )HeaderDefectzBase class for a header defect.c                 :     t                      j        |i | d S r   )r   r   )r   argskwr    s      r   r   zHeaderDefect.__init__T   s%    $%"%%%%%r
   r!   r#   s   @r   r@   r@   Q   s>        ))& & & & & & & & &r
   r@   c                       e Zd ZdZdS )InvalidHeaderDefectz+Header is not valid, message gives details.Nr   r	   r
   r   rE   rE   W   r   r
   rE   c                       e Zd ZdZdS )HeaderMissingRequiredValuez(A header that must have a value had noneNr   r	   r
   r   rG   rG   Z   r   r
   rG   c                   (     e Zd ZdZ fdZd Z xZS )NonPrintableDefectz8ASCII characters outside the ascii-printable range foundc                 X    t                                          |           || _        d S r   )r   r   non_printables)r   rK   r    s     r   r   zNonPrintableDefect.__init__`   s)    (((,r
   c                 6    d                     | j                  S )Nz6the following ASCII non-printables found in header: {})formatrK   )r   s    r   __str__zNonPrintableDefect.__str__d   s    +,,	.r
   )r   r   r   r   r   rN   r"   r#   s   @r   rI   rI   ]   sM        BB- - - - -. . . . . . .r
   rI   c                       e Zd ZdZdS )ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nr   r	   r
   r   rP   rP   h   r8   r
   rP   c                       e Zd ZdZdS )NonASCIILocalPartDefectz(local_part contains non-ASCII charactersNr   r	   r
   r   rR   rR   k   r   r
   rR   c                       e Zd ZdZdS )InvalidDateDefectz%Header has unparsable or invalid dateNr   r	   r
   r   rT   rT   p   s        ////r
   rT   N)r   	Exceptionr   r   r   r   	TypeErrorr   r   
ValueErrorr   r%   r'   r)   r,   r.   r1   MalformedHeaderDefectr3   r5   r7   r:   r<   r>   r@   rE   rG   rI   rP   rR   rT   r	   r
   r   <module>rY      s  
 ' &6 6 6 6 69 6 6 61 1 1 1 1 1 1 1' ' ' ' '( ' ' '. . . . .% . . .3 3 3 3 3|Y 3 3 3( ( ( ( (< ( ( (
    J   M M M M M- M M M6 6 6 6 6- 6 6 6P P P P P- P P PF F F F F- F F FJ J J J JM J J JP P P P P} P P P 9 J J J J J J J JP P P P PM P P P; ; ; ; ;] ; ; ;: : : : : : : :H H H H HM H H H? ? ? ? ? ? ? ?
& & & & &= & & &6 6 6 6 6, 6 6 63 3 3 3 3 3 3 3	. 	. 	. 	. 	. 	. 	. 	.; ; ; ; ;< ; ; ;3 3 3 3 3l 3 3 3
0 0 0 0 0 0 0 0 0 0r
   