Class FileUploadContentTypeException

All Implemented Interfaces:
Serializable

public class FileUploadContentTypeException extends FileUploadException
Signals that a request is not a multipart request.
See Also:
  • Constructor Details

    • 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 the Throwable.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 the Throwable.getMessage() method)
      cause - the original cause
  • Method Details

    • getContentType

      public String getContentType()
      Gets the content type.
      Returns:
      the content type.