public class MissingContextVariableException extends Exception
StepContext.get(Class)
,
TODO: extend from AbortException if it's not final
,
Serialized FormConstructor and Description |
---|
MissingContextVariableException(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
List<StepDescriptor> |
getProviders()
Returns
StepDescriptor 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() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Class<?> getType()
@Nonnull public List<StepDescriptor> getProviders()
StepDescriptor
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
Copyright © 2016–2017. All rights reserved.