Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../lib64/python2..../email
File: errors.py
# Copyright (C) 2001-2006 Python Software Foundation
[0] Fix | Delete
# Author: Barry Warsaw
[1] Fix | Delete
# Contact: email-sig@python.org
[2] Fix | Delete
[3] Fix | Delete
"""email package exception classes."""
[4] Fix | Delete
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
class MessageError(Exception):
[8] Fix | Delete
"""Base class for errors in the email package."""
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
class MessageParseError(MessageError):
[12] Fix | Delete
"""Base class for message parsing errors."""
[13] Fix | Delete
[14] Fix | Delete
[15] Fix | Delete
class HeaderParseError(MessageParseError):
[16] Fix | Delete
"""Error while parsing headers."""
[17] Fix | Delete
[18] Fix | Delete
[19] Fix | Delete
class BoundaryError(MessageParseError):
[20] Fix | Delete
"""Couldn't find terminating boundary."""
[21] Fix | Delete
[22] Fix | Delete
[23] Fix | Delete
class MultipartConversionError(MessageError, TypeError):
[24] Fix | Delete
"""Conversion to a multipart is prohibited."""
[25] Fix | Delete
[26] Fix | Delete
[27] Fix | Delete
class CharsetError(MessageError):
[28] Fix | Delete
"""An illegal charset was given."""
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
[32] Fix | Delete
# These are parsing defects which the parser was able to work around.
[33] Fix | Delete
class MessageDefect:
[34] Fix | Delete
"""Base class for a message defect."""
[35] Fix | Delete
[36] Fix | Delete
def __init__(self, line=None):
[37] Fix | Delete
self.line = line
[38] Fix | Delete
[39] Fix | Delete
class NoBoundaryInMultipartDefect(MessageDefect):
[40] Fix | Delete
"""A message claimed to be a multipart but had no boundary parameter."""
[41] Fix | Delete
[42] Fix | Delete
class StartBoundaryNotFoundDefect(MessageDefect):
[43] Fix | Delete
"""The claimed start boundary was never found."""
[44] Fix | Delete
[45] Fix | Delete
class FirstHeaderLineIsContinuationDefect(MessageDefect):
[46] Fix | Delete
"""A message had a continuation line as its first header line."""
[47] Fix | Delete
[48] Fix | Delete
class MisplacedEnvelopeHeaderDefect(MessageDefect):
[49] Fix | Delete
"""A 'Unix-from' header was found in the middle of a header block."""
[50] Fix | Delete
[51] Fix | Delete
class MalformedHeaderDefect(MessageDefect):
[52] Fix | Delete
"""Found a header that was missing a colon, or was otherwise malformed."""
[53] Fix | Delete
[54] Fix | Delete
class MultipartInvariantViolationDefect(MessageDefect):
[55] Fix | Delete
"""A message claimed to be a multipart but no subparts were found."""
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function