Class QueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.analytics.client.java.AnalyticsException
com.couchbase.analytics.client.java.QueryException
- All Implemented Interfaces:
Serializable
Thrown when the Analytics cluster returns an error message in response to a query request.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the Analytics 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 Analytics 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:
-