Class ResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.tinkerpop.gremlin.driver.exception.ResponseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FailResponseException

public class ResponseException extends Exception
Author:
Stephen Mallette (http://stephen.genoprime.com)
See Also:
  • Constructor Details

    • ResponseException

      public ResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage)
    • ResponseException

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

    • create

      public static ResponseException create(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage, String remoteException)
      Creates a ResponseException from a server response, returning the more specific FailResponseException when the remoteException indicates that a GraphTraversal.fail() step was triggered on the server. This allows remote fail() handling to be made consistent with the local behavior.
    • getResponseStatusCode

      public io.netty.handler.codec.http.HttpResponseStatus getResponseStatusCode()
    • getRemoteException

      public String getRemoteException()
      The exception generated by the server.