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
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage) ResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage, String remoteException) -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseExceptioncreate(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage, String remoteException) Creates aResponseExceptionfrom a server response, returning the more specificFailResponseExceptionwhen theremoteExceptionindicates that aGraphTraversal.fail()step was triggered on the server.The exception generated by the server.io.netty.handler.codec.http.HttpResponseStatusMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseException
public ResponseException(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage) -
ResponseException
-
-
Method Details
-
create
public static ResponseException create(io.netty.handler.codec.http.HttpResponseStatus responseStatusCode, String serverMessage, String remoteException) Creates aResponseExceptionfrom a server response, returning the more specificFailResponseExceptionwhen theremoteExceptionindicates that aGraphTraversal.fail()step was triggered on the server. This allows remotefail()handling to be made consistent with the local behavior. -
getResponseStatusCode
public io.netty.handler.codec.http.HttpResponseStatus getResponseStatusCode() -
getRemoteException
The exception generated by the server.
-