Class QueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.insights.client.java.InsightsException
com.couchbase.insights.client.java.QueryException
- All Implemented Interfaces:
Serializable
Thrown when the cluster returns an error message in response to a query request.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the error code sent by the server.booleanReturns true if the retry limit was reached, and it's safe to retry the same query later.Returns the human-readable error message sent by the server, without the additional context returned byThrowable.getMessage().Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
code
public int code()Returns the error code sent by the server. -
serverMessage
Returns the human-readable error message sent by the server, without the additional context returned byThrowable.getMessage().Caveat: The content and structure of this message may change between Couchbase Server versions.
-
retryable
public boolean retryable()Returns true if the retry limit was reached, and it's safe to retry the same query later.- See Also:
-