Package com.couchbase.client.core.error
Class AnalyticsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.client.core.error.CouchbaseException
com.couchbase.client.core.error.AnalyticsException
- All Implemented Interfaces:
Serializable
public class AnalyticsException extends CouchbaseException
There was a problem fulfilling the analytics request.
Check errors()
for further details.
- Since:
- 2.0.0
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description AnalyticsException(byte[] content)
AnalyticsException(byte[] content, Throwable cause)
protected
AnalyticsException(AnalyticsException cause)
-
Method Summary
Modifier and Type Method Description byte[]
content()
List<ErrorCodeAndMessage>
errors()
Returns the full list of errors and warnings associated with the exception.boolean
hasErrorCode(int code)
Methods inherited from class com.couchbase.client.core.error.CouchbaseException
context, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AnalyticsException
-
AnalyticsException
public AnalyticsException(byte[] content) -
AnalyticsException
-
-
Method Details
-
content
-
errors
Returns the full list of errors and warnings associated with the exception. Possible error codes are detailed in the Analytics Error Codes documentation. -
hasErrorCode
public boolean hasErrorCode(int code)
-