Class SizeException

    • Constructor Detail

      • SizeException

        protected SizeException​(String message,
                                long actual,
                                long permitted)
        Creates a new instance.
        Parameters:
        message - The detail message.
        actual - The actual number of bytes in the request.
        permitted - The requests size limit, in bytes.
    • Method Detail

      • getActualSize

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

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