Package org.apache.james.mime4j
Class MimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.james.mime4j.MimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MaxHeaderLengthLimitException
,MaxHeaderLimitException
,MimeParseEventException
,ParseException
public class MimeException extends 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
-
-
Constructor Summary
Constructors Constructor Description MimeException(String message)
Constructs a new MIME exception with the specified detail message.MimeException(String message, Throwable cause)
Constructs a MIME exception with the specified detail message and cause.MimeException(Throwable cause)
Constructs a MIME exception with the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MimeException
public MimeException(String message)
Constructs a new MIME exception with the specified detail message.- Parameters:
message
- detail message
-
MimeException
public MimeException(Throwable cause)
Constructs a MIME exception with the specified cause.- Parameters:
cause
- cause of the exception
-
-