com.lutris.mime
Class MimeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.lutris.mime.MimeException
- 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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
GENERIC
public static final int GENERIC
- Indicates a general error in parsing Mime data.
INVALID_HEADER
public static final int INVALID_HEADER
- Indicates incorrect Mime header syntax or illegal parameters.
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/*.
reason
public int reason
- Holds the reason code for this exception instance.