public class FailStep<S> extends SideEffectStep<S>
RuntimeException
. The exception thrown must
implement the Failure
interface.Modifier and Type | Class and Description |
---|---|
static class |
FailStep.FailException
|
Modifier and Type | Field and Description |
---|---|
protected String |
message |
protected Map<String,Object> |
metadata |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
FailStep(Traversal.Admin traversal) |
FailStep(Traversal.Admin traversal,
String message) |
FailStep(Traversal.Admin traversal,
String message,
Map<String,Object> metadata) |
Modifier and Type | Method and Description |
---|---|
protected void |
sideEffect(Traverser.Admin<S> traverser) |
processNextStart
addLabel, addStart, addStarts, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getRequirements
forEachRemaining, remove
public FailStep(Traversal.Admin traversal)
public FailStep(Traversal.Admin traversal, String message)
public FailStep(Traversal.Admin traversal, String message, Map<String,Object> metadata)
protected void sideEffect(Traverser.Admin<S> traverser)
sideEffect
in class SideEffectStep<S>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.