Class FileUploadByteCountLimitException

    • Constructor Detail

      • FileUploadByteCountLimitException

        public FileUploadByteCountLimitException​(String message,
                                                 long actual,
                                                 long permitted,
                                                 String fileName,
                                                 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 String getFieldName()
        Gets the field name of the item, which caused the exception.
        Returns:
        Field name, if known, or null.
      • getFileName

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