public abstract class ErrorHandler extends java.lang.Object implements java.util.function.Consumer<ErrorResponse>
| Constructor and Description |
|---|
ErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
abstract ErrorResponse |
parseResponse(int code,
java.lang.String json,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Parses the response and creates an ErrorResponse object based on the response code and the JSON
data using the provided ObjectMapper.
|
public abstract 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.