Class FileUploadContentTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.fileupload2.core.FileUploadException
org.apache.commons.fileupload2.core.FileUploadContentTypeException
- All Implemented Interfaces:
Serializable
Signals that a request is not a multipart request.
- See Also:
-
Constructor Summary
ConstructorDescriptionFileUploadContentTypeException
(String message, String contentType) Constructs an instance with the specified detail message.FileUploadContentTypeException
(String message, Throwable cause) Constructs an instance with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileUploadContentTypeException
Constructs an instance with the specified detail message.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)contentType
- The guilty content type.
-
FileUploadContentTypeException
Constructs an instance with the specified detail message and cause.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)cause
- the original cause
-
-
Method Details
-
getContentType
-