Class CancellationErrorContext
java.lang.Object
com.couchbase.client.core.cnc.AbstractContext
com.couchbase.client.core.error.context.ErrorContext
com.couchbase.client.core.error.context.CancellationErrorContext
- All Implemented Interfaces:
Context
When a cancellation (i.e. timeout) occurs we do only have the information available that is currently with the
request, so this context is not service-specific and just dumps what's in there.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Context
Context.ExportFormat
-
Constructor Summary
ConstructorDescriptionCancellationErrorContext
(AbstractContext context) CancellationErrorContext
(RequestContext requestContext) -
Method Summary
Modifier and TypeMethodDescriptionReturns information specific to a cancelled "range scan" request.Returns information specific to a cancelled "wait until ready" request.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.Returns the underlying request context (if present) for debug reasons.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 Details
-
CancellationErrorContext
-
CancellationErrorContext
-
-
Method Details
-
injectExportableParams
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.
-
requestContext
Returns the underlying request context (if present) for debug reasons. -
getWaitUntilReadyContext
Returns information specific to a cancelled "wait until ready" request.- Returns:
- (nullable) Returns null if no information is available, or if this error context is not associated with a "wait until ready" request.
-
getRangeScanContext
Returns information specific to a cancelled "range scan" request.- Returns:
- (nullable) Returns null if no information is available, or if this error context is not associated with a "range scan" request.
-