Determines how to proceed after an exception is thrown.
Public Methods
public
abstract
boolean
handleException(Exception ex, int ntries)
Determines how to proceed after an exception is thrown.
The connector code passes the exception along with the number of attempts to the method.
Implementations might call Thread.sleep() to delay or back off before
returning.
Parameters
ex
the exception that occurred
ntries
the number of consecutive failures for the current operation
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["The `ExceptionHandler` interface defines how to handle errors and implement retry logic in a connector."],["It provides the `handleException` method to determine the course of action after an exception, enabling retries or aborting the operation."],["Implementations can customize error handling by specifying retry strategies like exponential backoff or aborting after a certain number of attempts."]]],[]]