mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	non-us-ascii character sets in headers and bodies. Some API changes (with DeprecationWarnings for the old APIs). Better RFC-compliant implementations of base64 and quoted-printable. Updated test cases. Documentation updates to follow (after I finish writing them ;).
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# Copyright (C) 2001,2002 Python Software Foundation
 | 
						||
# Author: barry@zope.com (Barry Warsaw)
 | 
						||
 | 
						||
"""email package exception classes.
 | 
						||
"""
 | 
						||
 | 
						||
 | 
						||
 | 
						||
class MessageError(Exception):
 | 
						||
    """Base class for errors in this module."""
 | 
						||
 | 
						||
 | 
						||
class MessageParseError(MessageError):
 | 
						||
    """Base class for message parsing errors."""
 | 
						||
 | 
						||
 | 
						||
class HeaderParseError(MessageParseError):
 | 
						||
    """Error while parsing headers."""
 | 
						||
 | 
						||
 | 
						||
class BoundaryError(MessageParseError):
 | 
						||
    """Couldn't find terminating boundary."""
 | 
						||
 | 
						||
 | 
						||
class MultipartConversionError(MessageError, TypeError):
 | 
						||
    """Conversion to a multipart is prohibited."""
 |