Lines Matching +full:no +full:- +full:invalid +full:- +full:this
2 -------------------------------------------------
9 --------------
16 This is the base class for all exceptions that the :mod:`email` package can
17 raise. It is derived from the standard :exc:`Exception` class and defines no
23 This is the base class for exceptions raised by the
25 :exc:`MessageError`. This class is also used internally by the parser used
32 message, this class is derived from :exc:`MessageParseError`. The
33 :meth:`~email.message.EmailMessage.set_boundary` method will raise this
35 :class:`~email.header.Header` may raise this error for certain base64
38 continuation line that has no leading whitespace and looks like a header).
43 Deprecated and no longer used.
50 message's :mailheader:`Content-Type` main type is not either
52 inherits from :exc:`MessageError` and the built-in :exc:`TypeError`.
54 Since :meth:`Message.add_payload` is deprecated, this exception is rarely
70 * :class:`NoBoundaryInMultipartDefect` -- A message claimed to be a multipart,
71 but had no :mimetype:`boundary` parameter.
73 * :class:`StartBoundaryNotFoundDefect` -- The start boundary claimed in the
74 :mailheader:`Content-Type` header was never found.
76 * :class:`CloseBoundaryNotFoundDefect` -- A start boundary was found, but
77 no corresponding close boundary was ever found.
81 * :class:`FirstHeaderLineIsContinuationDefect` -- The message had a continuation
84 * :class:`MisplacedEnvelopeHeaderDefect` - A "Unix From" header was found in the
87 * :class:`MissingHeaderBodySeparatorDefect` - A line was found while parsing
88 headers that had no leading white space but contained no ':'. Parsing
93 * :class:`MalformedHeaderDefect` -- A header was found that was missing a colon,
97 This defect has not been used for several Python versions.
99 * :class:`MultipartInvariantViolationDefect` -- A message claimed to be a
100 :mimetype:`multipart`, but no subparts were found. Note that when a message
101 has this defect, its :meth:`~email.message.Message.is_multipart` method may
104 * :class:`InvalidBase64PaddingDefect` -- When decoding a block of base64
106 perform the decode, but the resulting decoded bytes may be invalid.
108 * :class:`InvalidBase64CharactersDefect` -- When decoding a block of base64
110 The characters are ignored, but the resulting decoded bytes may be invalid.
112 * :class:`InvalidBase64LengthDefect` -- When decoding a block of base64 encoded
113 bytes, the number of non-padding base64 characters was invalid (1 more than
114 a multiple of 4). The encoded block was kept as-is.
116 * :class:`InvalidDateDefect` -- When decoding an invalid or unparsable date field.
117 The original value is kept as-is.