Package com.couchbase.transactions.util
Class QueryUtil
- java.lang.Object
-
- com.couchbase.transactions.util.QueryUtil
-
public class QueryUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.couchbase.client.core.error.ErrorCodeAndMessage
chooseQueryError(com.couchbase.client.core.error.context.QueryErrorContext ctx)
static java.lang.RuntimeException
convertQueryError(java.lang.Throwable err)
Converts raw query error codes into useful exceptions.
-
-
-
Method Detail
-
convertQueryError
public static java.lang.RuntimeException convertQueryError(java.lang.Throwable err)
Converts raw query error codes into useful exceptions.Once query is returning TransactionOperationFailed details, this can also raise a TransactionOperationFailed.
-
chooseQueryError
public static com.couchbase.client.core.error.ErrorCodeAndMessage chooseQueryError(com.couchbase.client.core.error.context.QueryErrorContext ctx)
-
-