@Test void testHandleInternalServerErrorException() { Exception e = mock(Exception.class); HandlerMethod method = mock(HandlerMethod.class); fallbackExceptionHandler.handleInternalServerErrorException(e, method); verify(exceptionHandlerFacade).logAndHandleException(e, INTERNAL_SERVER_ERROR, method); }
@ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler public Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod) { return exceptionHandlerFacade.logAndHandleException(e, INTERNAL_SERVER_ERROR, handlerMethod); }
FallbackExceptionHandler { @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler public Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod) { return exceptionHandlerFacade.logAndHandleException(e, INTERNAL_SERVER_ERROR, handlerMethod); } }
FallbackExceptionHandler { @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler public Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod) { return exceptionHandlerFacade.logAndHandleException(e, INTERNAL_SERVER_ERROR, handlerMethod); } FallbackExceptionHandler(ExceptionHandlerFacade exceptionHandlerFacade); }
FallbackExceptionHandler { @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler public Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod) { return exceptionHandlerFacade.logAndHandleException(e, INTERNAL_SERVER_ERROR, handlerMethod); } FallbackExceptionHandler(ExceptionHandlerFacade exceptionHandlerFacade); @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod); }
FallbackExceptionHandler { @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler public Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod) { return exceptionHandlerFacade.logAndHandleException(e, INTERNAL_SERVER_ERROR, handlerMethod); } FallbackExceptionHandler(ExceptionHandlerFacade exceptionHandlerFacade); @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler Object handleInternalServerErrorException(Exception e, HandlerMethod handlerMethod);  }