List of usage examples for org.springframework.web.client HttpServerErrorException getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:br.com.modoagil.asr.rest.support.RESTErrorHandler.java
/** * Manipula exceo para status HTTP {@code 5xx}, exceo do servidor * * @param ex//from w ww.ja v a2 s .c o m * {@link HttpServerErrorException} * @return resposta ao cliente */ @ResponseBody @ExceptionHandler(HttpServerErrorException.class) public Response<E> processHttpServerErrorException(final HttpServerErrorException ex) { this.logger.info("handleHttpServerErrorException - Catching: " + ex.getClass().getSimpleName(), ex); return new ResponseBuilder<E>().success(false).message(ex.getMessage()).status(ex.getStatusCode()).build(); }