public interface ErrorHandler<RespT>
Modifier and Type | Method and Description |
---|---|
boolean |
handleRequestError(BackOffer backOffer,
Exception e)
Handle the error received during a calling process before it could return a normal response.
|
boolean |
handleResponseError(BackOffer backOffer,
RespT resp)
Handle the error received in the response after a calling process completes.
|
boolean handleResponseError(BackOffer backOffer, RespT resp)
backOffer
- Back offer used for retryresp
- the response to handleboolean handleRequestError(BackOffer backOffer, Exception e)
backOffer
- Back offer used for retrye
- Exception received during a calling processCopyright © 2024 PingCAP. All rights reserved.