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
Provides a
Failure implementation for ResponseException. This exception is thrown instead of
a ResponseException when the server response carries an exception of EXCEPTION_NAME which
indicates that a step in the traversal failed by way of GraphTraversal.fail(). This approach helps make
remote exception handling for that step more consistent with the local GraphTraversal.fail() behavior.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTheexceptionname returned in a server response when aGraphTraversal.fail()step is triggered. -
Constructor Summary
ConstructorsConstructorDescriptionFailResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage) -
Method Summary
Methods inherited from class org.apache.tinkerpop.gremlin.driver.exception.ResponseException
create, getRemoteException, getResponseStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Failure
format, getMessage
-
Field Details
-
EXCEPTION_NAME
Theexceptionname returned in a server response when aGraphTraversal.fail()step is triggered.- See Also:
-
-
Constructor Details
-
FailResponseException
public FailResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage)
-
-
Method Details
-
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
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
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
-