java.lang.Object
java.lang.Throwable
java.lang.Exception
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.
| Nested classes inherited from class java.lang.Throwable |
|
|
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. |
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
|
Constructor Summary |
(package private) |
MimeException()
Creates a MimeException object with informational string
s and the default reason code, GENERIC. |
(package private) |
MimeException(java.lang.String s)
Creates a MimeException object with informational string
s and the default reason code, GENERIC. |
(package private) |
MimeException(java.lang.String s,
int reason)
Creates a MimeException object with informational string
s and reason code reason. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
MimeException
MimeException(java.lang.String s,
int reason)
- Creates a MimeException object with informational string
s and reason code reason.
MimeException
MimeException(java.lang.String s)
- Creates a MimeException object with informational string
s and the default reason code, GENERIC.
MimeException
MimeException()
- Creates a MimeException object with informational string
s and the default reason code, GENERIC.