Class ApiExceptionHandler
- java.lang.Object
-
- app.coronawarn.server.services.callback.controller.ApiExceptionHandler
-
@RestControllerAdvice("app.coronawarn.server.services.callback.controller") public class ApiExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description ApiExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleConstraintViolationException(Exception ex, org.springframework.web.context.request.WebRequest wr)
void
unknownException(Exception ex, org.springframework.web.context.request.WebRequest wr)
-
-
-
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)
-
-