| java.lang.Object java.lang.Throwable java.lang.Exception com.lutris.mime.MimeException
MimeException | public class MimeException extends Exception (Code) | | 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 .
|
Field Summary | |
final public static int | GENERIC Indicates a general error in parsing Mime data. | final public static int | INVALID_HEADER Indicates incorrect Mime header syntax or illegal parameters. | final public static int | INVALID_MIME_TYPE Indicates an illegal Mime type for a particular operation. | public int | reason Holds the reason code for this exception instance. |
Constructor Summary | |
| MimeException(String s, int reason) Creates a MimeException object with informational string
s and reason code reason . | | MimeException(String s) Creates a MimeException object with informational string
s and the default reason code, GENERIC . | | MimeException() Creates a MimeException object with informational string
s and the default reason code, GENERIC . |
GENERIC | final public static int GENERIC(Code) | | Indicates a general error in parsing Mime data.
|
INVALID_HEADER | final public static int INVALID_HEADER(Code) | | Indicates incorrect Mime header syntax or illegal parameters.
|
INVALID_MIME_TYPE | final public static int INVALID_MIME_TYPE(Code) | | 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(Code) | | Holds the reason code for this exception instance.
|
MimeException | MimeException(String s, int reason)(Code) | | Creates a MimeException object with informational string
s and reason code reason .
Parameters: s - Informational string. Parameters: reason - Reason code. |
MimeException | MimeException(String s)(Code) | | Creates a MimeException object with informational string
s and the default reason code, GENERIC .
Parameters: s - Informational string. |
MimeException | MimeException()(Code) | | Creates a MimeException object with informational string
s and the default reason code, GENERIC .
Parameters: s - Informational string. |
|
|