Class FileUploadByteCountLimitException

    • Constructor Summary

      Constructors 
      Constructor Description
      FileUploadByteCountLimitException​(java.lang.String message, long actual, long permitted, java.lang.String fileName, java.lang.String fieldName)
      Constructs an instance with the specified detail message, and actual and permitted sizes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldName()
      Gets the field name of the item, which caused the exception.
      java.lang.String getFileName()
      Gets the file name of the item, which caused the exception.
      • 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

      • FileUploadByteCountLimitException

        public FileUploadByteCountLimitException​(java.lang.String message,
                                                 long actual,
                                                 long permitted,
                                                 java.lang.String fileName,
                                                 java.lang.String fieldName)
        Constructs an instance with the specified detail message, and actual and permitted sizes.
        Parameters:
        message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)
        actual - The actual request size.
        permitted - The maximum permitted request size.
        fileName - File name of the item, which caused the exception.
        fieldName - Field name of the item, which caused the exception.
    • Method Detail

      • getFieldName

        public java.lang.String getFieldName()
        Gets the field name of the item, which caused the exception.
        Returns:
        Field name, if known, or null.
      • getFileName

        public java.lang.String getFileName()
        Gets the file name of the item, which caused the exception.
        Returns:
        File name, if known, or null.