Class QueryException

All Implemented Interfaces:
Serializable

@Deprecated @UsedBy(SPRING_DATA_COUCHBASE) public class QueryException extends CouchbaseException
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 Details

    • QueryException

      public QueryException(QueryException cause)
      Deprecated.
    • QueryException

      public QueryException(byte[] content)
      Deprecated.
    • QueryException

      public QueryException(String message, Collection<ErrorCodeAndMessage> errors)
      Deprecated.
  • Method Details

    • msg

      public String 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

      public List<ErrorCodeAndMessage> 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.