@Service public class AuthorizationPossibleErrorHandler extends Object
| Constructor and Description |
|---|
AuthorizationPossibleErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handlePossibleAuthorizationError(Runnable tryAuthorize,
Consumer<de.adorsys.xs2a.adapter.service.exception.ErrorResponseException> onFail)
Swallows retryable (like wrong password) authorization exceptions.
|
public void handlePossibleAuthorizationError(Runnable tryAuthorize, Consumer<de.adorsys.xs2a.adapter.service.exception.ErrorResponseException> onFail)
tryAuthorize - Authorization function to callonFail - Fallback function to call if retryable exception occurred.Copyright © 2020. All rights reserved.