Class FileUploadContentTypeException

    • 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.String getContentType()
      Gets the content type.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 the Throwable.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 the Throwable.getMessage() method)
        cause - the original cause
    • Method Detail

      • getContentType

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