Example usage for org.springframework.web.client HttpServerErrorException getClass

List of usage examples for org.springframework.web.client HttpServerErrorException getClass

Introduction

In this page you can find the example usage for org.springframework.web.client HttpServerErrorException getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

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();
}