Class FileSizeLimitExceededException

    • Constructor Detail

      • FileSizeLimitExceededException

        public FileSizeLimitExceededException​(String sMsg,
                                              long nActual,
                                              long nPermitted,
                                              @Nullable
                                              String sFieldName,
                                              @Nullable
                                              String sFilename)
        Constructs a SizeExceededException with the specified detail message, and actual and permitted sizes.
        Parameters:
        sMsg - The detail message.
        nActual - The actual request size.
        nPermitted - The maximum permitted request size.
        sFieldName - Field name of the item, which caused the exception.
        sFilename - File name of the item, which caused the exception.
    • Method Detail

      • getFileName

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

        @Nullable
        public String getFieldName()
        Returns the field name of the item, which caused the exception.
        Returns:
        Field name, if known, or null.
      • getActualSize

        public long getActualSize()
        Retrieves the actual size of the request.
        Returns:
        The actual size of the request.
      • getPermittedSize

        public long getPermittedSize()
        Retrieves the permitted size of the request.
        Returns:
        The permitted size of the request.