Class ResponseException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- org.apache.tinkerpop.gremlin.driver.exception.ResponseException
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class ResponseException extends Exception - Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ResponseException(ResponseStatusCode responseStatusCode, String serverMessage)ResponseException(ResponseStatusCode responseStatusCode, String serverMessage, List<String> remoteExceptionHierarchy, String remoteStackTrace)ResponseException(ResponseStatusCode responseStatusCode, String serverMessage, List<String> remoteExceptionHierarchy, String remoteStackTrace, Map<String,Object> statusAttributes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<List<String>>getRemoteExceptionHierarchy()The list of exceptions generated by the server starting with the top-most one followed by its "cause".Optional<String>getRemoteStackTrace()The stacktrace produced by the remote server.ResponseStatusCodegetResponseStatusCode()Optional<Map<String,Object>>getStatusAttributes()Gets any status attributes from the response.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
ResponseExceptionpublic ResponseException(ResponseStatusCode responseStatusCode, String serverMessage) 
 - 
ResponseExceptionpublic ResponseException(ResponseStatusCode responseStatusCode, String serverMessage, List<String> remoteExceptionHierarchy, String remoteStackTrace) 
 
- 
 - 
Method Detail- 
getResponseStatusCodepublic ResponseStatusCode getResponseStatusCode() 
 - 
getRemoteStackTracepublic Optional<String> getRemoteStackTrace() The stacktrace produced by the remote server.
 - 
getRemoteExceptionHierarchypublic Optional<List<String>> getRemoteExceptionHierarchy() The list of exceptions generated by the server starting with the top-most one followed by its "cause". That cause is then followed by its cause and so on down the line.
 
- 
 
-