@ControllerAdvice public class WebErrorHandlers extends Object
| Constructor and Description |
|---|
WebErrorHandlers() |
| Modifier and Type | Method and Description |
|---|---|
void |
badRequest(Exception e,
javax.servlet.http.HttpServletResponse response) |
void |
handleException(Exception e,
javax.servlet.http.HttpServletResponse response) |
void |
handleFeignException(FeignResponseException e,
javax.servlet.http.HttpServletResponse response) |
void |
handleHttpStatusCodeException(org.springframework.web.client.HttpStatusCodeException e,
javax.servlet.http.HttpServletResponse response) |
@ExceptionHandler(value=org.springframework.http.converter.HttpMessageNotReadableException.class) public void badRequest(Exception e, javax.servlet.http.HttpServletResponse response) throws IOException
IOException@ExceptionHandler(value=org.springframework.web.client.HttpStatusCodeException.class)
public void handleHttpStatusCodeException(org.springframework.web.client.HttpStatusCodeException e,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@ExceptionHandler(value=FeignResponseException.class) public void handleFeignException(FeignResponseException e, javax.servlet.http.HttpServletResponse response) throws IOException
IOException@ExceptionHandler(value=java.lang.Exception.class) public void handleException(Exception e, javax.servlet.http.HttpServletResponse response) throws Exception
ExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.