@ControllerAdvice
public class GenieExceptionMapper
extends java.lang.Object
| Constructor and Description |
|---|
GenieExceptionMapper(io.micrometer.core.instrument.MeterRegistry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleConstraintViolation(javax.servlet.http.HttpServletResponse response,
javax.validation.ConstraintViolationException cve)
Handle constraint violation exceptions.
|
void |
handleGenieException(javax.servlet.http.HttpServletResponse response,
com.netflix.genie.common.exceptions.GenieException e)
Handle Genie Exceptions.
|
void |
handleMethodArgumentNotValidException(javax.servlet.http.HttpServletResponse response,
org.springframework.web.bind.MethodArgumentNotValidException e)
Handle MethodArgumentNotValid exceptions.
|
@Autowired public GenieExceptionMapper(io.micrometer.core.instrument.MeterRegistry registry)
registry - The metrics registry@ExceptionHandler(value=com.netflix.genie.common.exceptions.GenieException.class)
public void handleGenieException(javax.servlet.http.HttpServletResponse response,
com.netflix.genie.common.exceptions.GenieException e)
throws java.io.IOException
response - The HTTP responsee - The exception to handlejava.io.IOException - on error in sending error@ExceptionHandler(value=javax.validation.ConstraintViolationException.class)
public void handleConstraintViolation(javax.servlet.http.HttpServletResponse response,
javax.validation.ConstraintViolationException cve)
throws java.io.IOException
response - The HTTP responsecve - The exception to handlejava.io.IOException - on error in sending error@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class)
public void handleMethodArgumentNotValidException(javax.servlet.http.HttpServletResponse response,
org.springframework.web.bind.MethodArgumentNotValidException e)
throws java.io.IOException
response - The HTTP responsee - The exception to handlejava.io.IOException - on error in sending error