Class FileUploadSizeException

    • Constructor Summary

      Constructors 
      Constructor Description
      FileUploadSizeException​(java.lang.String message, long permitted, long actual)
      Constructs an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getActualSize()
      Gets the actual size of the request.
      long getPermitted()
      Gets the limit size of the request.
      • 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

      • FileUploadSizeException

        public FileUploadSizeException​(java.lang.String message,
                                       long permitted,
                                       long actual)
        Constructs an instance.
        Parameters:
        message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)
        permitted - The requests size limit.
        actual - The actual values for the request.
    • Method Detail

      • getActualSize

        public long getActualSize()
        Gets the actual size of the request.
        Returns:
        The actual size of the request.
      • getPermitted

        public long getPermitted()
        Gets the limit size of the request.
        Returns:
        The limit size of the request.