Class ApiExceptionHandler


  • @RestControllerAdvice("app.coronawarn.server.services.submission.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)
      • bindingExceptions

        @ExceptionHandler({org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.web.bind.ServletRequestBindingException.class,com.google.protobuf.InvalidProtocolBufferException.class})
        @ResponseStatus(BAD_REQUEST)
        public void bindingExceptions​(Exception ex,
                                      org.springframework.web.context.request.WebRequest wr)