Class OnActionErrorOptions<T>
java.lang.Object
com.azure.search.documents.options.OnActionErrorOptions<T>
- Type Parameters:
T- Type of the document in the action.
Options passed when
SearchClientBuilder.SearchIndexingBufferedSenderBuilder.onActionError(Consumer) is
called.-
Constructor Summary
ConstructorsConstructorDescriptionOnActionErrorOptions(IndexAction<T> action) Creates a new OnActionErrorOptions object. -
Method Summary
Modifier and TypeMethodDescriptionGets the action.Gets the indexing result of the action.Gets the throwable that caused the action to fail.setIndexingResult(IndexingResult indexingResult) Sets the indexing result of the action with a non-retryable status code.setThrowable(Throwable throwable) Sets the throwable that caused the action failed.
-
Constructor Details
-
OnActionErrorOptions
Creates a new OnActionErrorOptions object.- Parameters:
action- Action that failed with an error.
-
-
Method Details
-
getAction
Gets the action.- Returns:
- The action.
-
setThrowable
Sets the throwable that caused the action failed.- Parameters:
throwable- Throwable that caused the action to fail.- Returns:
- The updated OnActionErrorOptions object.
-
getThrowable
Gets the throwable that caused the action to fail.- Returns:
- The throwable that caused the action to fail.
-
setIndexingResult
Sets the indexing result of the action with a non-retryable status code.- Parameters:
indexingResult- The indexing result for the action.- Returns:
- The updated OnActionErrorOptions object.
-
getIndexingResult
Gets the indexing result of the action.- Returns:
- The indexing result of the action.
-