Class SubDocumentErrorContext
java.lang.Object
com.couchbase.client.core.cnc.AbstractContext
com.couchbase.client.core.error.context.ErrorContext
com.couchbase.client.core.error.context.SubDocumentErrorContext
- All Implemented Interfaces:
Context
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Context
Context.ExportFormat
-
Constructor Summary
ConstructorDescriptionSubDocumentErrorContext
(KeyValueErrorContext kvContext, int index, String path, SubDocumentOpResponseStatus status, AbstractContext context, String serverError) -
Method Summary
Modifier and TypeMethodDescriptionint
index()
Returns the index of the spec which triggered the error.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 Details
-
SubDocumentErrorContext
public SubDocumentErrorContext(KeyValueErrorContext kvContext, int index, String path, SubDocumentOpResponseStatus status, @Nullable AbstractContext context, @Nullable String serverError)
-
-
Method Details
-
index
public int index()Returns the index of the spec which triggered the error. -
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.
-