Class ApiExceptionHandler


  • @RestControllerAdvice("app.coronawarn.server.services.callback.controller")
    public class ApiExceptionHandler
    extends Object
    • Constructor Detail

      • ApiExceptionHandler

        public ApiExceptionHandler()
    • Method Detail

      • unknownException

        @ExceptionHandler(java.lang.Exception.class)
        @ResponseStatus(INTERNAL_SERVER_ERROR)
        public void unknownException​(Exception ex,
                                     org.springframework.web.context.request.WebRequest wr)
      • handleConstraintViolationException

        @ExceptionHandler({javax.validation.ConstraintViolationException.class,java.text.ParseException.class,org.springframework.web.bind.MissingServletRequestParameterException.class,org.springframework.beans.TypeMismatchException.class})
        @ResponseStatus(BAD_REQUEST)
        public void handleConstraintViolationException​(Exception ex,
                                                       org.springframework.web.context.request.WebRequest wr)