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,EventingErrorContext,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 theCouchbaseException.
-
-
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
All Methods Instance Methods Concrete Methods 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
exportAsMap, exportAsString, toString
-
-
-
-
Constructor Detail
-
ErrorContext
protected ErrorContext(ResponseStatus responseStatus)
-
-
Method Detail
-
responseStatus
public ResponseStatus responseStatus()
-
injectExportableParams
public void injectExportableParams(Map<String,Object> input)
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.
-
-