public class QueryException extends CouchbaseException
Check errors()
for further details.
TODO: needs to go away once all the manaagement APIs are refactored
Constructor and Description |
---|
QueryException(byte[] content) |
QueryException(QueryException cause) |
QueryException(String message,
Collection<ErrorCodeAndMessage> errors) |
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the numeric error code from the query service.
|
List<ErrorCodeAndMessage> |
errors()
Returns the full list of errors and warnings associated with the exception.
|
boolean |
hasErrorCode(int code) |
String |
msg()
Returns a human-readable description of the error, as reported by the query service.
|
context, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public QueryException(QueryException cause)
public QueryException(byte[] content)
public QueryException(String message, Collection<ErrorCodeAndMessage> errors)
public String msg()
public int code()
These are detailed in the N1QL Error Codes documentation.
public List<ErrorCodeAndMessage> errors()
public boolean hasErrorCode(int code)
Copyright © 2020 Couchbase, Inc.. All rights reserved.