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 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 Details

  • Constructor Details

    • 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
    • MimeException

      public MimeException(String message, Throwable cause)
      Constructs a MIME exception with the specified detail message and cause.
      Parameters:
      message - detail message
      cause - cause of the exception