
    Rh                     `   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 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/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Zy7)8z email package exception classes.c                       e Zd ZdZy)MessageErrorz+Base class for errors in the email package.N__name__
__module____qualname____doc__     #/usr/lib/python3.12/email/errors.pyr   r          5r
   r   c                       e Zd ZdZy)MessageParseErrorz&Base class for message parsing errors.Nr   r	   r
   r   r   r      s    0r
   r   c                       e Zd ZdZy)HeaderParseErrorzError while parsing headers.Nr   r	   r
   r   r   r          &r
   r   c                       e Zd ZdZy)BoundaryErrorz#Couldn't find terminating boundary.Nr   r	   r
   r   r   r      s    -r
   r   c                       e Zd ZdZy)MultipartConversionErrorz(Conversion to a multipart is prohibited.Nr   r	   r
   r   r   r          2r
   r   c                       e Zd ZdZy)CharsetErrorzAn illegal charset was given.Nr   r	   r
   r   r   r      s    'r
   r   c                       e Zd ZdZy)HeaderWriteErrorzError while writing headers.Nr   r	   r
   r   r   r       r   r
   r   c                   $     e Zd ZdZd fd	Z xZS )MessageDefectz Base class for a message defect.c                 6    |t         |   |       || _        y N)super__init__line)selfr!   	__class__s     r   r    zMessageDefect.__init__(   s    GT"	r
   r   r   r   r   r   r    __classcell__r#   s   @r   r   r   %   s    * r
   r   c                       e Zd ZdZy)NoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nr   r	   r
   r   r(   r(   -   s    Lr
   r(   c                       e Zd ZdZy)StartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nr   r	   r
   r   r*   r*   0   r   r
   r*   c                       e Zd ZdZy)CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nr   r	   r
   r   r,   r,   3       Or
   r,   c                       e Zd ZdZy)#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nr   r	   r
   r   r/   r/   6   s    Er
   r/   c                       e Zd ZdZy)MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nr   r	   r
   r   r1   r1   9       Ir
   r1   c                       e Zd ZdZy) MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nr   r	   r
   r   r4   r4   <   r-   r
   r4   c                       e Zd ZdZy)!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nr   r	   r
   r   r6   r6   A   r2   r
   r6   c                       e Zd ZdZy)-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nr   r	   r
   r   r8   r8   D   r-   r
   r8   c                       e Zd ZdZy)UndecodableBytesDefectz0Header contained bytes that could not be decodedNr   r	   r
   r   r:   r:   G       :r
   r:   c                       e Zd ZdZy)InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNr   r	   r
   r   r=   r=   J   s    9r
   r=   c                       e Zd ZdZy)InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNr   r	   r
   r   r?   r?   M   s    Gr
   r?   c                       e Zd ZdZy)InvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)Nr   r	   r
   r   rA   rA   P   s    >r
   rA   c                   "     e Zd ZdZ fdZ xZS )HeaderDefectzBase class for a header defect.c                 $    t        |   |i | y r   )r   r    )r"   argskwr#   s      r   r    zHeaderDefect.__init__X   s    $%"%r
   r$   r&   s   @r   rC   rC   U   s    )& &r
   rC   c                       e Zd ZdZy)InvalidHeaderDefectz+Header is not valid, message gives details.Nr   r	   r
   r   rH   rH   [   r   r
   rH   c                       e Zd ZdZy)HeaderMissingRequiredValuez(A header that must have a value had noneNr   r	   r
   r   rJ   rJ   ^   r   r
   rJ   c                   (     e Zd ZdZ fdZd Z xZS )NonPrintableDefectz8ASCII characters outside the ascii-printable range foundc                 2    t         |   |       || _        y r   )r   r    non_printables)r"   rN   r#   s     r   r    zNonPrintableDefect.__init__d   s    (,r
   c                 8    dj                  | j                        S )Nz6the following ASCII non-printables found in header: {})formatrN   )r"   s    r   __str__zNonPrintableDefect.__str__h   s    ++,	.r
   )r   r   r   r   r    rQ   r%   r&   s   @r   rL   rL   a   s    B-.r
   rL   c                       e Zd ZdZy)ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nr   r	   r
   r   rS   rS   l   r;   r
   rS   c                       e Zd ZdZy)NonASCIILocalPartDefectz(local_part contains non-ASCII charactersNr   r	   r
   r   rU   rU   o   r   r
   rU   c                       e Zd ZdZy)InvalidDateDefectz%Header has unparsable or invalid dateNr   r	   r
   r   rW   rW   t   s    /r
   rW   N) r   	Exceptionr   r   r   r   	TypeErrorr   r   r   
ValueErrorr   r(   r*   r,   r/   r1   r4   MalformedHeaderDefectr6   r8   r:   r=   r?   rA   rC   rH   rJ   rL   rS   rU   rW   r	   r
   r   <module>r\      sj  
 '69 61 1'( '.% .3|Y 3(< ('| '
J M- M6- 6P- PF- FJM JP} P 9 J JPM P;] ;: :HM H? ?
&= &6, 63 3	. 	.;< ;3l 3
0 0r
   