@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 |
|---|---|
org.springframework.http.ResponseEntity<com.netflix.genie.common.exceptions.GeniePreconditionException> |
handleConstraintViolation(javax.validation.ConstraintViolationException cve)
Handle constraint violation exceptions.
|
org.springframework.http.ResponseEntity<com.netflix.genie.common.internal.exceptions.checked.GenieCheckedException> |
handleGenieCheckedException(com.netflix.genie.common.internal.exceptions.checked.GenieCheckedException e)
Handle
GenieCheckedException instances. |
org.springframework.http.ResponseEntity<com.netflix.genie.common.exceptions.GenieException> |
handleGenieException(com.netflix.genie.common.exceptions.GenieException e)
Handle Genie Exceptions.
|
org.springframework.http.ResponseEntity<com.netflix.genie.common.internal.exceptions.unchecked.GenieRuntimeException> |
handleGenieRuntimeException(com.netflix.genie.common.internal.exceptions.unchecked.GenieRuntimeException e)
Handle Genie runtime exceptions.
|
org.springframework.http.ResponseEntity<com.netflix.genie.common.exceptions.GeniePreconditionException> |
handleMethodArgumentNotValidException(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 org.springframework.http.ResponseEntity<com.netflix.genie.common.exceptions.GenieException> handleGenieException(com.netflix.genie.common.exceptions.GenieException e)
e - The exception to handleResponseEntity instance@ExceptionHandler(value=com.netflix.genie.common.internal.exceptions.unchecked.GenieRuntimeException.class) public org.springframework.http.ResponseEntity<com.netflix.genie.common.internal.exceptions.unchecked.GenieRuntimeException> handleGenieRuntimeException(com.netflix.genie.common.internal.exceptions.unchecked.GenieRuntimeException e)
e - The Genie exception to handleResponseEntity with the exception mapped to a HttpStatus@ExceptionHandler(value=com.netflix.genie.common.internal.exceptions.checked.GenieCheckedException.class) public org.springframework.http.ResponseEntity<com.netflix.genie.common.internal.exceptions.checked.GenieCheckedException> handleGenieCheckedException(com.netflix.genie.common.internal.exceptions.checked.GenieCheckedException e)
GenieCheckedException instances.e - The exception to mapResponseEntity with the exception mapped to a HttpStatus@ExceptionHandler(value=javax.validation.ConstraintViolationException.class) public org.springframework.http.ResponseEntity<com.netflix.genie.common.exceptions.GeniePreconditionException> handleConstraintViolation(javax.validation.ConstraintViolationException cve)
cve - The exception to handleResponseEntity instance@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<com.netflix.genie.common.exceptions.GeniePreconditionException> handleMethodArgumentNotValidException(org.springframework.web.bind.MethodArgumentNotValidException e)
e - The exception to handleResponseEntity instance