Class FailResponseException

All Implemented Interfaces:
Serializable, Failure

public class FailResponseException extends ResponseException implements 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 Details

  • Constructor Details

    • FailResponseException

      public FailResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage)
  • Method Details

    • getMetadata

      public Map<String,Object> getMetadata()
      Description copied from interface: Failure
      Gets any additional metadata associated with the failure. Returns an empty Map when there is no metadata.
      Specified by:
      getMetadata in interface Failure
    • getTraverser

      public Traverser.Admin getTraverser()
      Description copied from interface: Failure
      Gets the Traverser that was being processed when the failure was triggered. May return null when the Failure was reconstructed from a remote response where this context is not available.
      Specified by:
      getTraverser in interface Failure
    • getTraversal

      public Traversal.Admin getTraversal()
      Description copied from interface: Failure
      Gets the Traversal that contained the fail() step that triggered the failure. May return null when the Failure was reconstructed from a remote response where this context is not available.
      Specified by:
      getTraversal in interface Failure