Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)