Viewing File: /opt/alt/python-internal/lib64/python3.11/email/__pycache__/errors.cpython-311.pyc



!A?hdZGddeZGddeZGddeZGddeZGd	d
eeZGddeZGd
deZ	Gdde
ZGddeZGddeZ
GddeZGddeZGddeZGddeZeZGddeZGdd eZGd!d"eZGd#d$eZGd%d&eZGd'd(eZGd)d*eZGd+d,eZGd-d.eZGd/d0eZGd1d2eZGd3d4eZGd5d6eZd7S)8z email package exception classes.ceZdZdZdS)MessageErrorz+Base class for errors in the email package.N__name__
__module____qualname____doc__9/opt/alt/python-internal/lib64/python3.11/email/errors.pyrr5555r
rceZdZdZdS)MessageParseErrorz&Base class for message parsing errors.Nrr	r
rrrs0000r
rceZdZdZdS)HeaderParseErrorzError while parsing headers.Nrr	r
rrr&&&&r
rceZdZdZdS)
BoundaryErrorz#Couldn't find terminating boundary.Nrr	r
rrrs----r
rceZdZdZdS)MultipartConversionErrorz(Conversion to a multipart is prohibited.Nrr	r
rrr2222r
rceZdZdZdS)CharsetErrorzAn illegal charset was given.Nrr	r
rrrs''''r
rceZdZdZdS)HeaderWriteErrorzError while writing headers.Nrr	r
rrr rr
rc$eZdZdZdfd	ZxZS)
MessageDefectz Base class for a message defect.Nc\|!t|||_dSN)super__init__line)selfr!	__class__s  rr zMessageDefect.__init__(s,GGT"""			r
rrrrrr 
__classcell__r#s@rrr%sC**r
rceZdZdZdS)NoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nrr	r
rr(r(-sLLLLr
r(ceZdZdZdS)StartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nrr	r
rr*r*0rr
r*ceZdZdZdS)CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nrr	r
rr,r,3OOOOr
r,ceZdZdZdS)#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nrr	r
rr/r/6sEEEEr
r/ceZdZdZdS)MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nrr	r
rr1r19IIIIr
r1ceZdZdZdS) MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nrr	r
rr4r4<r-r
r4ceZdZdZdS)!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nrr	r
rr6r6Ar2r
r6ceZdZdZdS)-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nrr	r
rr8r8Dr-r
r8ceZdZdZdS)UndecodableBytesDefectz0Header contained bytes that could not be decodedNrr	r
rr:r:G::::r
r:ceZdZdZdS)InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNrr	r
rr=r=Js9999r
r=ceZdZdZdS)InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNrr	r
rr?r?MsGGGGr
r?ceZdZdZdS)InvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)Nrr	r
rrArAPs>>>>r
rAc"eZdZdZfdZxZS)HeaderDefectzBase class for a header defect.c:tj|i|dSr)rr )r"argskwr#s   rr zHeaderDefect.__init__Xs%$%"%%%%%r
r$r&s@rrCrCUs>))&&&&&&&&&r
rCceZdZdZdS)InvalidHeaderDefectz+Header is not valid, message gives details.Nrr	r
rrHrH[rr
rHceZdZdZdS)HeaderMissingRequiredValuez(A header that must have a value had noneNrr	r
rrJrJ^rr
rJc(eZdZdZfdZdZxZS)NonPrintableDefectz8ASCII characters outside the ascii-printable range foundcXt|||_dSr)rr non_printables)r"rNr#s  rr zNonPrintableDefect.__init__ds)
(((,r
c6d|jS)Nz6the following ASCII non-printables found in header: {})formatrN)r"s r__str__zNonPrintableDefect.__str__hs+,,	.r
)rrrrr rQr%r&s@rrLrLasMBB-----.......r
rLceZdZdZdS)ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nrr	r
rrSrSlr;r
rSceZdZdZdS)NonASCIILocalPartDefectz(local_part contains non-ASCII charactersNrr	r
rrUrUorr
rUceZdZdZdS)InvalidDateDefectz%Header has unparsable or invalid dateNrr	r
rrWrWts////r
rWN) r	Exceptionrrrr	TypeErrorrrr
ValueErrorrr(r*r,r/r1r4MalformedHeaderDefectr6r8r:r=r?rArCrHrJrLrSrUrWr	r
r<module>r\s
'&66666966611111111'''''('''.....%...33333|Y333(((((<((('''''|'''
JMMMMM-MMM66666-666PPPPP-PPPFFFFF-FFFJJJJJMJJJPPPPP}PPP9JJJJJ
JJJPPPPPMPPP;;;;;];;;::::::::HHHHHMHHH?????
???
&&&&&=&&&66666,66633333333	.	.	.	.	.	.	.	.;;;;;<;;;33333l333
0000000000r
Back to Directory File Manager