Class FailStep<S>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,S>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectStep<S>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.FailStep<S>
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Iterator<Traverser.Admin<S>>,- Step<S,S>
 
 public class FailStep<S> extends SideEffectStep<S> Triggers an immediate failure of the traversal by throwing aRuntimeException. The exception thrown must implement theFailureinterface.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFailStep.FailException
 - 
Field SummaryFields Modifier and Type Field Description protected Stringmessageprotected Map<String,Object>metadata- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 
- 
 - 
Constructor SummaryConstructors Constructor Description FailStep(Traversal.Admin traversal)FailStep(Traversal.Admin traversal, String message)FailStep(Traversal.Admin traversal, String message, Map<String,Object> metadata)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()protected voidsideEffect(Traverser.Admin<S> traverser)- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectStepprocessNextStart
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, clearLabels, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Stepequals, getRequirements
 
- 
 
- 
- 
- 
Constructor Detail- 
FailSteppublic FailStep(Traversal.Admin traversal) 
 - 
FailSteppublic FailStep(Traversal.Admin traversal, String message) 
 - 
FailSteppublic FailStep(Traversal.Admin traversal, String message, Map<String,Object> metadata) 
 
- 
 - 
Method Detail- 
getMessagepublic String getMessage() 
 - 
sideEffectprotected void sideEffect(Traverser.Admin<S> traverser) - Specified by:
- sideEffectin class- SideEffectStep<S>
 
 
- 
 
-