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
MIME processing exception.
A MimeException
may be thrown by a ContentHandler
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMimeException
(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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
MimeException
Constructs a new MIME exception with the specified detail message.- Parameters:
message
- detail message
-
MimeException
Constructs a MIME exception with the specified cause.- Parameters:
cause
- cause of the exception
-
MimeException
Constructs a MIME exception with the specified detail message and cause.- Parameters:
message
- detail messagecause
- cause of the exception
-