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
There was a problem fulfilling the analytics request.
Check errors()
for further details.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionAnalyticsException
(byte[] content) AnalyticsException
(byte[] content, Throwable cause) protected
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
content()
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, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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)
-