Class FileUploadContentTypeException

All Implemented Interfaces:
Serializable

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

    • serialVersionUID

      private static final long serialVersionUID
      The exceptions UID, for serializing an instance.
      See Also:
    • contentType

      private String contentType
      The guilty content type.
  • 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()