Class RequestNotPendingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
io.jenkins.plugins.batchcontrol.policy.RequestNotPendingException
- All Implemented Interfaces:
Serializable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class RequestNotPendingException
extends IllegalStateException
#1.7 (e2e-05 EX-01): the refusal of a change that applies only while a request is PENDING (its
designated approvers), when the request is already decided or otherwise ended. Nothing about
the submitted input is wrong, so a screen shows the message as a plain refusal of the whole
request, not next to a field. The message names the request's current status, for example
"This run request is already APPROVED; its approvers can no longer be changed."
An IllegalStateException, like every other state refusal of the services, so a
caller that does not know this type still refuses the change.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe request's status when the change was refused (never PENDING).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getStatus
The request's status when the change was refused (never PENDING).
-