EAF 7.4 API

com.lutris.mime
Class MimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.lutris.mime.MimeException
All Implemented Interfaces:
java.io.Serializable

public class MimeException
extends java.lang.Exception

Public exception class to indicate an error in Mime data. This is never thrown by MultiparMimeInputStream since that class needs to look exactly like an InputStream.

See Also:
Serialized Form

Field Summary
static int GENERIC
          Indicates a general error in parsing Mime data.
static int INVALID_HEADER
          Indicates incorrect Mime header syntax or illegal parameters.
static int INVALID_MIME_TYPE
          Indicates an illegal Mime type for a particular operation.
 int reason
          Holds the reason code for this exception instance.
 
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
 

Field Detail

GENERIC

public static final int GENERIC
Indicates a general error in parsing Mime data.

See Also:
Constant Field Values

INVALID_HEADER

public static final int INVALID_HEADER
Indicates incorrect Mime header syntax or illegal parameters.

See Also:
Constant Field Values

INVALID_MIME_TYPE

public static final int INVALID_MIME_TYPE
Indicates an illegal Mime type for a particular operation. For example, this code is generated if an attempt is made to create a MultipartMimeInput object with a Mime type other than multipart/*.

See Also:
Constant Field Values

reason

public int reason
Holds the reason code for this exception instance.


EAF 7.4 API