Class RequestTooLargeException

All Implemented Interfaces:
Serializable

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class RequestTooLargeException extends IllegalArgumentException
D-72b (4), security-37 S-37-01: a run request refused because what it would keep (its file contents and the stored text of its other values, RequestBodyLimit.keptSize(java.util.List<? extends hudson.model.ParameterValue>, java.util.Map<java.lang.String, java.lang.Long>)) is over the cap RequestBodyLimit.maxRequestBodyBytes(). Nothing was stored and the submission's temporary files were disposed of. An IllegalArgumentException, so callers that treat refused input alike keep working; the web layer answers it with HTTP 413.
See Also:
  • Method Details

    • getLimit

      public long getLimit()
      The cap in bytes the request was measured against.