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 SummaryConstructors Constructor Description ApiExceptionHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleConstraintViolationException(Exception ex, org.springframework.web.context.request.WebRequest wr)voidunknownException(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)
 
- 
 
-