Class ErrorContext
java.lang.Object
com.couchbase.client.core.cnc.AbstractContext
com.couchbase.client.core.error.context.ErrorContext
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
AggregateErrorContext,AnalyticsErrorContext,CancellationErrorContext,GenericRequestErrorContext,KeyValueErrorContext,KeyValueIoErrorContext,QueryErrorContext,ReducedAnalyticsErrorContext,ReducedKeyValueErrorContext,ReducedQueryErrorContext,ReducedSearchErrorContext,ReducedViewErrorContext,SearchErrorContext,SubDocumentErrorContext,ViewErrorContext
@Uncommitted public abstract class ErrorContext extends AbstractContext
The ErrorContext is the parent interface for all service-specific error contexts that are thrown as part of
the
CouchbaseException.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Context
Context.ExportFormat -
Constructor Summary
Constructors Modifier Constructor Description protectedErrorContext(ResponseStatus responseStatus) -
Method Summary
Modifier and Type Method Description voidinjectExportableParams(Map<String,Object> input)This method needs to be implemented by the actual context implementations to inject the params they need for exporting.ResponseStatusresponseStatus()Methods inherited from class com.couchbase.client.core.cnc.AbstractContext
exportAsString, toString
-
Constructor Details
-
ErrorContext
-
-
Method Details
-
responseStatus
-
injectExportableParams
Description copied from class:AbstractContextThis method needs to be implemented by the actual context implementations to inject the params they need for exporting.- Overrides:
injectExportableParamsin classAbstractContext- Parameters:
input- pass exportable params in here.
-