- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
ApiException(final ResourceException cause, final Representation repr,
final Class<? extends ErrorResponse> responseClass) {
super(cause);
this.cause = cause;
ErrorResponse response = null;
try {
response = new ObjectMapper().readValue(repr.getText(), responseClass);
} catch (final Exception e) {
log.error("Error attempting to parse the error response", e);
} finally {
this.response = response;
}
}
Комментарии (7) RSS
Добавить комментарий