public class ErrorReportHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
ErrorReport to a ApplicationException| Constructor and Description |
|---|
ErrorReportHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertErrorReport(ErrorReport errorReport)
instantiates the
ApplicationException as described in the ErrorReport that a rest service can respond |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
void |
handleError(org.springframework.http.client.ClientHttpResponse response) |
boolean |
hasError(org.springframework.http.client.ClientHttpResponse response) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public boolean hasError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
hasError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionpublic void handleError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
handleError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionpublic void convertErrorReport(ErrorReport errorReport)
ApplicationException as described in the ErrorReport that a rest service can responderrorReport - Copyright © 2019. All rights reserved.