Class RequestTooLargeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
io.jenkins.plugins.batchcontrol.policy.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 Summary
Modifier and TypeMethodDescriptionlonggetLimit()The cap in bytes the request was measured against.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getLimit
public long getLimit()The cap in bytes the request was measured against.
-