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, GenericErrorContext, GenericRequestErrorContext, KeyValueErrorContext, KeyValueIoErrorContext, ManagerErrorContext, 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.
  • Constructor Details

    • ErrorContext

      protected ErrorContext(ResponseStatus responseStatus)
  • Method Details

    • responseStatus

      public ResponseStatus responseStatus()
    • injectExportableParams

      public void injectExportableParams(Map<String,Object> input)
      Description copied from class: AbstractContext
      This method needs to be implemented by the actual context implementations to inject the params they need for exporting.
      Overrides:
      injectExportableParams in class AbstractContext
      Parameters:
      input - pass exportable params in here.