Class MissingContextVariableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jenkinsci.plugins.workflow.steps.MissingContextVariableException
All Implemented Interfaces:
Serializable

public class MissingContextVariableException extends Exception
Indicates that a required context was not available.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

  • Method Details

    • getType

      public Class<?> getType()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getProviders

      @NonNull public List<StepDescriptor> getProviders()
      Returns StepDescriptors 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 StepDescriptors that just decorates/modifies the existing context, so we check required context as well to exclude them