OnActionErrorOptions<T> Class
- java.
lang. Object - com.
azure. search. documents. options. OnActionErrorOptions<T>
- com.
Type Parameters
- T
Type of the document in the action.
public final class OnActionErrorOptions
Options passed when SearchClientBuilder.SearchIndexingBufferedSenderBuilder#onActionError(Consumer) is called.
Constructor Summary
Constructor | Description |
---|---|
OnActionErrorOptions(IndexAction<T> action) |
Creates a new On |
Method Summary
Modifier and Type | Method and Description |
---|---|
Index |
getAction()
Gets the action. |
Indexing |
getIndexingResult()
Gets the indexing result of the action. |
Throwable |
getThrowable()
Gets the throwable that caused the action to fail. |
On |
setIndexingResult(IndexingResult indexingResult)
Sets the indexing result of the action with a non-retryable status code. |
On |
setThrowable(Throwable throwable)
Sets the throwable that caused the action failed. |
Methods inherited from java.lang.Object
Constructor Details
OnActionErrorOptions
public OnActionErrorOptions(IndexAction
Creates a new OnActionErrorOptions object.
Parameters:
Method Details
getAction
public IndexAction
Gets the action.
Returns:
getIndexingResult
public IndexingResult getIndexingResult()
Gets the indexing result of the action.
Returns:
getThrowable
public Throwable getThrowable()
Gets the throwable that caused the action to fail.
Returns:
setIndexingResult
public OnActionErrorOptions
Sets the indexing result of the action with a non-retryable status code.
Parameters:
Returns:
setThrowable
public OnActionErrorOptions
Sets the throwable that caused the action failed.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for