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
All Methods Instance Methods Concrete Methods 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, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AnalyticsException
protected AnalyticsException(AnalyticsException cause)
-
AnalyticsException
public AnalyticsException(byte[] content)
-
AnalyticsException
public AnalyticsException(byte[] content, Throwable cause)
-
-
Method Detail
-
content
@Internal public byte[] content()
-
errors
public List<ErrorCodeAndMessage> 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)
-
-