Package com.couchbase.client.core.error
Class QueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.client.core.error.CouchbaseException
com.couchbase.client.core.error.QueryException
- All Implemented Interfaces:
Serializable
Deprecated.
The SDK never throws this exception.
There was a problem fulfilling the query request.
Check errors()
for further details.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionQueryException
(byte[] content) Deprecated.QueryException
(QueryException cause) Deprecated.QueryException
(String message, Collection<ErrorCodeAndMessage> errors) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
code()
Deprecated.Returns the numeric error code from the query service.errors()
Deprecated.Returns the full list of errors and warnings associated with the exception.boolean
hasErrorCode
(int code) Deprecated.msg()
Deprecated.Returns a human-readable description of the error, as reported by the query service.Methods inherited from class com.couchbase.client.core.error.CouchbaseException
context, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryException
Deprecated. -
QueryException
public QueryException(byte[] content) Deprecated. -
QueryException
Deprecated.
-
-
Method Details
-
msg
Deprecated.Returns a human-readable description of the error, as reported by the query service. -
code
public int code()Deprecated.Returns the numeric error code from the query service.These are detailed in the N1QL Error Codes documentation.
-
errors
Deprecated.Returns the full list of errors and warnings associated with the exception. Possible error codes are detailed in the N1QL Error Codes documentation. -
hasErrorCode
public boolean hasErrorCode(int code) Deprecated.
-