Class GenericRequestErrorContext
- java.lang.Object
-
- com.couchbase.client.core.cnc.AbstractContext
-
- com.couchbase.client.core.error.context.ErrorContext
-
- com.couchbase.client.core.error.context.GenericRequestErrorContext
-
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
GenericHttpRequestErrorContext
@Uncommitted public class GenericRequestErrorContext extends ErrorContext
This generic error context can be constructed from any request and will pull out as much information as possible.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Context
Context.ExportFormat
-
-
Constructor Summary
Constructors Constructor Description GenericRequestErrorContext(Request<?> request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectExportableParams(Map<String,Object> input)
This method needs to be implemented by the actual context implementations to inject the params they need for exporting.-
Methods inherited from class com.couchbase.client.core.error.context.ErrorContext
responseStatus
-
Methods inherited from class com.couchbase.client.core.cnc.AbstractContext
exportAsMap, exportAsString, toString
-
-
-
-
Constructor Detail
-
GenericRequestErrorContext
public GenericRequestErrorContext(Request<?> request)
-
-
Method Detail
-
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 classErrorContext
- Parameters:
input
- pass exportable params in here.
-
-