(Exception ex, Model m)
| 12 | @Controller |
| 13 | public class ExceptionController { |
| 14 | @ExceptionHandler({NullPointerException.class, FileNotFoundException.class}) |
| 15 | public String catcher2(Exception ex, Model m) { |
| 16 | m.addAttribute("ex", ex); |
| 17 | return "error"; |
| 18 | } |
| 19 | |
| 20 | @ExceptionHandler(Exception.class) |
| 21 | @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) // 200 -> 500 |
nothing calls this directly
no outgoing calls
no test coverage detected