Class UploadSizeLimitExceededException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UploadSizeLimitExceededException
    extends java.lang.Exception
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UploadSizeLimitExceededException​(long sizeLimit, java.lang.String fileName)
      Constructs a UploadSizeLimitExceededException with permitted size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFileName()
      Return the name of the uploaded file when the execption occurs.
      long getSizeLimit()
      Returns the maximum permitted file upload size in bytes.
      • 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

      • UploadSizeLimitExceededException

        public UploadSizeLimitExceededException​(long sizeLimit,
                                                java.lang.String fileName)
        Constructs a UploadSizeLimitExceededException with permitted size.
        Parameters:
        sizeLimit - The maximum permitted file upload size in bytes.
        fileName - The name of the uploaded file when the execption occurs.
        Since:
        3.3
    • Method Detail

      • getSizeLimit

        public long getSizeLimit()
        Returns the maximum permitted file upload size in bytes.
      • getFileName

        public java.lang.String getFileName()
        Return the name of the uploaded file when the execption occurs.