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
public class FileUploadContentTypeException extends FileUploadException
Signals that a request is not a multipart request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUploadContentTypeException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FileUploadContentTypeException
public FileUploadContentTypeException(String message, 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(String message, 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 String getContentType()
-
-