Class FailResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.tinkerpop.gremlin.driver.exception.ResponseException
-
- org.apache.tinkerpop.gremlin.driver.exception.FailResponseException
-
- All Implemented Interfaces:
Serializable,Failure
public class FailResponseException extends ResponseException implements Failure
Provides aFailureimplementation forResponseException. This exception is thrown instead of aResponseExceptionwhen the server returns astatus.codeofResponseStatusCode.SERVER_ERROR_FAIL_STEPwhich indicates that a step in the traversal failed by way ofGraphTraversal.fail(). This approach helps make remote exception handling for that step more consistent with the localGraphTraversal.fail()behavior.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Failure
TRANSLATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getMetadata()Gets any additional metadata associated with the failure.Traversal.AdmingetTraversal()Gets theTraversalthat contained thefail()step that triggered the failure.Traverser.AdmingetTraverser()Gets theTraverserthat was being processed when the failure was triggered.-
Methods inherited from class org.apache.tinkerpop.gremlin.driver.exception.ResponseException
getRemoteExceptionHierarchy, getRemoteStackTrace, getResponseStatusCode, getStatusAttributes
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Failure
format, getMessage
-
-
-
-
Method Detail
-
getMetadata
public Map<String,Object> getMetadata()
Description copied from interface:FailureGets any additional metadata associated with the failure. Returns an emptyMapwhen there is no metadata.- Specified by:
getMetadatain interfaceFailure
-
getTraverser
public Traverser.Admin getTraverser()
Description copied from interface:FailureGets theTraverserthat was being processed when the failure was triggered. May returnnullwhen theFailurewas reconstructed from a remote response where this context is not available.- Specified by:
getTraverserin interfaceFailure
-
getTraversal
public Traversal.Admin getTraversal()
Description copied from interface:FailureGets theTraversalthat contained thefail()step that triggered the failure. May returnnullwhen theFailurewas reconstructed from a remote response where this context is not available.- Specified by:
getTraversalin interfaceFailure
-
-