Package com.couchbase.client.java.error
Class QueryExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.CouchbaseException
-
- com.couchbase.client.java.error.QueryExecutionException
-
- All Implemented Interfaces:
Serializable
public class QueryExecutionException extends CouchbaseException
ACouchbaseException
representing various errors during N1QL querying, when an actual Exception wrapping aJsonObject
is needed. It can also be thrown when the result handle is not available during deferred query rows fetch, the result handle is available only when the status poll returns success.- Since:
- 2.2
- Author:
- Simon Baslé
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryExecutionException(String message, JsonObject n1qlError)
QueryExecutionException(String message, JsonObject n1qlError, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObject
getN1qlError()
-
Methods inherited from class com.couchbase.client.core.CouchbaseException
details, details, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
QueryExecutionException
public QueryExecutionException(String message, JsonObject n1qlError)
-
QueryExecutionException
public QueryExecutionException(String message, JsonObject n1qlError, Throwable cause)
-
-
Method Detail
-
getN1qlError
public JsonObject getN1qlError()
-
-