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:
java.io.Serializable
public class FileUploadContentTypeException extends FileUploadException
Signals that a request is not a multipart request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUploadContentTypeException(java.lang.String message, java.lang.String contentType)Constructs an instance with the specified detail message.FileUploadContentTypeException(java.lang.String message, java.lang.Throwable cause)Constructs an instance with the specified detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Gets the content type.
-
-
-
Constructor Detail
-
FileUploadContentTypeException
public FileUploadContentTypeException(java.lang.String message, java.lang.String contentType)
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
public FileUploadContentTypeException(java.lang.String message, java.lang.Throwable cause)
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 Detail
-
getContentType
public java.lang.String getContentType()
Gets the content type.- Returns:
- the content type.
-
-