Class QueryException

All Implemented Interfaces:
Serializable

public class QueryException extends CouchbaseException
There was a problem fulfilling the query request.

Check errors() for further details. TODO: needs to go away once all the manaagement APIs are refactored

Since:
2.0.0
See Also:
  • Constructor Details

  • Method Details

    • msg

      public String msg()
      Returns a human-readable description of the error, as reported by the query service.
    • code

      public int code()
      Returns the numeric error code from the query service.

      These are detailed in the N1QL Error Codes documentation.

    • errors

      public List<ErrorCodeAndMessage> errors()
      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)