org.apache.james.mime4j
Class MimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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 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:
Serialized Form

Constructor Summary
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.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 message
cause - cause of the exception


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.