@ControllerAdvice
public class ExceptionTranslator
extends java.lang.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 java.net.URI |
defaultConstraintViolationType() |
default java.lang.String |
formatFieldName(java.lang.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) |
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
newConstraintViolationProblem(java.lang.Throwable arg0,
java.util.Collection<org.zalando.problem.spring.web.advice.validation.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 Problem payload to add the message key for front-end if needed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleProblem
handleThrowable
handleUnsupportedOperation
handleMediaTypeNotAcceptable
handleMediaTypeNotSupportedException
handleRequestMethodNotSupportedException
handleMessageNotReadableException
handleMultipart
handleTypeMismatch
handleMissingServletRequestParameter
handleMissingServletRequestPart
handleNoHandlerFound
handleServletRequestBinding
handleAuthentication
handleAccessDenied
createViolation, handleConstraintViolation
handleBindingResult
public 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)
process
in interface org.zalando.problem.spring.web.advice.AdviceTrait
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(value=BadRequestAlertException.class) public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleBadRequestAlertException(BadRequestAlertException ex, org.springframework.web.context.request.NativeWebRequest request)
@ExceptionHandler(value=org.springframework.dao.ConcurrencyFailureException.class) public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleConcurrencyFailure(org.springframework.dao.ConcurrencyFailureException ex, org.springframework.web.context.request.NativeWebRequest request)
public java.net.URI defaultConstraintViolationType()
public org.zalando.problem.StatusType defaultConstraintViolationStatus()
public java.lang.String formatFieldName(java.lang.String arg0)
public org.springframework.http.ResponseEntity<org.zalando.problem.Problem> newConstraintViolationProblem(java.lang.Throwable arg0, java.util.Collection<org.zalando.problem.spring.web.advice.validation.Violation> arg1, org.springframework.web.context.request.NativeWebRequest arg2)
Copyright © 2017 Osgiliath. All rights reserved.