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 SummaryConstructorsConstructorDescriptionFileUploadContentTypeException(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 SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
FileUploadContentTypeExceptionConstructs an instance with the specified detail message.- Parameters:
- message- The detail message (which is saved for later retrieval by the- Throwable.getMessage()method)
- contentType- The guilty content type.
 
- 
FileUploadContentTypeExceptionConstructs an instance with the specified detail message and cause.- Parameters:
- message- The detail message (which is saved for later retrieval by the- Throwable.getMessage()method)
- cause- the original cause
 
 
- 
- 
Method Details- 
getContentTypeGets the content type.- Returns:
- the content type.
 
 
-