@ControllerAdvice public class ExceptionTranslator extends Object implements org.zalando.problem.spring.web.advice.ProblemHandling
| Constructor and Description |
|---|
ExceptionTranslator() |
| Modifier and Type | Method and Description |
|---|---|
default org.zalando.problem.StatusType |
defaultConstraintViolationStatus() |
default URI |
defaultConstraintViolationType() |
default String |
formatFieldName(String arg0) |
org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
handleBadRequestAlertException(BadRequestAlertException ex,
org.springframework.web.context.request.NativeWebRequest request) |
org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
handleConcurrencyFailure(org.springframework.dao.ConcurrencyFailureException ex,
org.springframework.web.context.request.NativeWebRequest request) |
org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException ex,
org.springframework.web.context.request.NativeWebRequest request) |
org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
handleNoSuchElementException(NoSuchElementException ex,
org.springframework.web.context.request.NativeWebRequest request) |
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
newConstraintViolationProblem(Throwable arg0,
Collection<org.zalando.problem.violations.Violation> arg1,
org.springframework.web.context.request.NativeWebRequest arg2) |
org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
process(org.springframework.http.ResponseEntity<org.zalando.problem.Problem> entity,
org.springframework.web.context.request.NativeWebRequest request)
Post-process the Problem payload to add the message key for the front-end if needed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleProblemhandleThrowablehandleUnsupportedOperationhandleMediaTypeNotAcceptablehandleMediaTypeNotSupportedExceptionhandleRequestMethodNotSupportedExceptionhandleMessageNotReadableExceptionhandleMultiparthandleTypeMismatchhandleMissingServletRequestParameterhandleMissingServletRequestParthandleNoHandlerFoundhandleServletRequestBindinghandleAuthenticationhandleAccessDeniedcreateViolation, handleConstraintViolationhandleBindingResultcreateViolation, createViolation, createViolationspublic org.springframework.http.ResponseEntity<org.zalando.problem.Problem> process(@Nullable org.springframework.http.ResponseEntity<org.zalando.problem.Problem> entity, org.springframework.web.context.request.NativeWebRequest request)
public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException ex,
@Nonnull
org.springframework.web.context.request.NativeWebRequest request)
handleMethodArgumentNotValid in interface org.zalando.problem.spring.web.advice.validation.MethodArgumentNotValidAdviceTrait@ExceptionHandler public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleNoSuchElementException(NoSuchElementException ex, org.springframework.web.context.request.NativeWebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleBadRequestAlertException(BadRequestAlertException ex, org.springframework.web.context.request.NativeWebRequest request)
@ExceptionHandler
public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleConcurrencyFailure(org.springframework.dao.ConcurrencyFailureException ex,
org.springframework.web.context.request.NativeWebRequest request)
public URI defaultConstraintViolationType()
public org.zalando.problem.StatusType defaultConstraintViolationStatus()
public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> newConstraintViolationProblem(Throwable arg0, Collection<org.zalando.problem.violations.Violation> arg1, org.springframework.web.context.request.NativeWebRequest arg2)
Copyright © 2019 Power TAC. All rights reserved.