public static class ErrorHandlers.OAuthErrorHandler extends ErrorHandler
| Constructor and Description | 
|---|
| OAuthErrorHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(ErrorResponse errorResponse)Accepts the error response and throws an exception based on the error type. | 
| ErrorResponse | parseResponse(int code,
             java.lang.String json,
             com.fasterxml.jackson.databind.ObjectMapper mapper)Parses the error response from the server. | 
public ErrorResponse parseResponse(int code, java.lang.String json, com.fasterxml.jackson.databind.ObjectMapper mapper)
code - The response code indicating the error status.json - The JSON data representing the error response.mapper - The ObjectMapper used to deserialize the JSON data.public void accept(ErrorResponse errorResponse)
accept in interface java.util.function.Consumer<ErrorResponse>errorResponse - the input argument