Class ApiExceptionHandler
- java.lang.Object
-
- app.coronawarn.server.services.submission.controller.ApiExceptionHandler
-
@RestControllerAdvice("app.coronawarn.server.services.submission.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
bindingExceptions(Exception ex, org.springframework.web.context.request.WebRequest wr)
void
diagnosisKeyExceptions(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)
-
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)
-
diagnosisKeyExceptions
@ExceptionHandler({InvalidDiagnosisKeyException.class,javax.validation.ConstraintViolationException.class}) @ResponseStatus(BAD_REQUEST) public void diagnosisKeyExceptions(Exception ex, org.springframework.web.context.request.WebRequest wr)
-
-