Class MissingContextVariableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jenkinsci.plugins.workflow.steps.MissingContextVariableException
- All Implemented Interfaces:
Serializable
Indicates that a required context was not available.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
ConstructorDescriptionMissingContextVariableException
(Class<?> type) Deprecated.MissingContextVariableException
(Class<?> type, StepDescriptor d) -
Method Summary
Modifier and TypeMethodDescriptionReturnsStepDescriptor
s with body that can provide a context of this type, so that the error message can diagnose what steps were likely missing.Class<?>
getType()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingContextVariableException
Deprecated. -
MissingContextVariableException
-
-
Method Details
-
getType
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getProviders
ReturnsStepDescriptor
s with body that can provide a context of this type, so that the error message can diagnose what steps were likely missing.In such error diagnosing context, we don't care about
StepDescriptor
s that just decorates/modifies the existing context, so we check required context as well to exclude them
-
MissingContextVariableException(Class, StepDescriptor)