- 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;
}
}
guest 28.02.2012 14:56 # 0
Steve_Brown 28.02.2012 16:25 # +1
absolut 28.02.2012 16:35 # 0
roman-kashitsyn 28.02.2012 16:42 # 0
someone 28.02.2012 17:25 # 0
TarasB 28.02.2012 17:29 # +4
roman-kashitsyn 28.02.2012 20:54 # 0