Package org.apache.james.mime4j
Class MimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.james.mime4j.MimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MaxHeaderLengthLimitException
,MaxHeaderLimitException
,MimeParseEventException
,ParseException
public class MimeException extends java.lang.Exception
MIME processing exception.A
MimeException
may be thrown by aContentHandler
to indicate that it has failed to process a message event and that no further events should be generated.MimeException
also gets thrown by the parser to indicate MIME protocol errors, e.g. if a message boundary is too long or a header field cannot be parsed.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MimeException(java.lang.String message)
Constructs a new MIME exception with the specified detail message.MimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a MIME exception with the specified detail message and cause.MimeException(java.lang.Throwable cause)
Constructs a MIME exception with the specified cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MimeException
public MimeException(java.lang.String message)
Constructs a new MIME exception with the specified detail message.- Parameters:
message
- detail message
-
MimeException
public MimeException(java.lang.Throwable cause)
Constructs a MIME exception with the specified cause.- Parameters:
cause
- cause of the exception
-
MimeException
public MimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a MIME exception with the specified detail message and cause.- Parameters:
message
- detail messagecause
- cause of the exception
-
-