3 \?ã@sždZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGd d „d eeƒZGd d „d eƒZGd d„de ƒZ Gdd„de ƒZ Gdd„de ƒZ Gdd„de ƒZ Gdd„de ƒZGdd„de ƒZGdd„de ƒZeZGdd„de ƒZGdd„de ƒZGdd „d e ƒZGd!d"„d"e ƒZGd#d$„d$e ƒZGd%d&„d&e ƒZGd'd(„d(e ƒZGd)d*„d*eƒZGd+d,„d,eƒZGd-d.„d.eƒZGd/d0„d0eƒZGd1d2„d2eƒZd3S)4z email package exception classes.c@seZdZdZdS)Ú MessageErrorz+Base class for errors in the email package.N)Ú__name__Ú __module__Ú __qualname__Ú__doc__©rrú$/usr/lib64/python3.6/email/errors.pyrsrc@seZdZdZdS)ÚMessageParseErrorz&Base class for message parsing errors.N)rrrrrrrrr src@seZdZdZdS)ÚHeaderParseErrorzError while parsing headers.N)rrrrrrrrr sr c@seZdZdZdS)Ú BoundaryErrorz#Couldn't find terminating boundary.N)rrrrrrrrr sr c@seZdZdZdS)ÚMultipartConversionErrorz(Conversion to a multipart is prohibited.N)rrrrrrrrr sr c@seZdZdZdS)Ú CharsetErrorzAn illegal charset was given.N)rrrrrrrrr sr cs"eZdZdZd‡fdd„ Z‡ZS)Ú MessageDefectz Base class for a message defect.Ncs|dk rtƒj|ƒ||_dS)N)ÚsuperÚ__init__Úline)Úselfr)Ú __class__rrr$s zMessageDefect.__init__)N)rrrrrÚ __classcell__rr)rrr !sr c@seZdZdZdS)ÚNoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.N)rrrrrrrrr)src@seZdZdZdS)ÚStartBoundaryNotFoundDefectz+The claimed start boundary was never found.N)rrrrrrrrr,src@seZdZdZdS)ÚCloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.N)rrrrrrrrr/src@seZdZdZdS)Ú#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.N)rrrrrrrrr2src@seZdZdZdS)ÚMisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.N)rrrrrrrrr5src@seZdZdZdS)Ú MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.N)rrrrrrrrr8src@seZdZdZdS)Ú!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.N)rrrrrrrrr=src@seZdZdZdS)Ú-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.N)rrrrrrrrr@src@seZdZdZdS)ÚUndecodableBytesDefectz0Header contained bytes that could not be decodedN)rrrrrrrrrCsrc@seZdZdZdS)ÚInvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthN)rrrrrrrrrFsrc@seZdZdZdS)ÚInvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetN)rrrrrrrrrIsrc@seZdZdZdS)ÚInvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)N)rrrrrrrrrLsrcs eZdZdZ‡fdd„Z‡ZS)Ú HeaderDefectzBase class for a header defect.cstƒj||ŽdS)N)rr)rÚargsÚkw)rrrrTszHeaderDefect.__init__)rrrrrrrr)rrr Qsr c@seZdZdZdS)ÚInvalidHeaderDefectz+Header is not valid, message gives details.N)rrrrrrrrr#Wsr#c@seZdZdZdS)ÚHeaderMissingRequiredValuez(A header that must have a value had noneN)rrrrrrrrr$Zsr$cs(eZdZdZ‡fdd„Zdd„Z‡ZS)ÚNonPrintableDefectz8ASCII characters outside the ascii-printable range foundcstƒj|ƒ||_dS)N)rrÚnon_printables)rr&)rrrr`s zNonPrintableDefect.__init__cCs dj|jƒS)Nz6the following ASCII non-printables found in header: {})Úformatr&)rrrrÚ__str__dszNonPrintableDefect.__str__)rrrrrr(rrr)rrr%]s r%c@seZdZdZdS)ÚObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322N)rrrrrrrrr)hsr)c@seZdZdZdS)ÚNonASCIILocalPartDefectz(local_part contains non-ASCII charactersN)rrrrrrrrr*ksr*N)rÚ Exceptionrrr r Ú TypeErrorr r Ú ValueErrorr rrrrrrZMalformedHeaderDefectrrrrrrr r#r$r%r)r*rrrrÚs4