MCPcopy Create free account
hub / github.com/castello/spring_basic / catcher

Method catcher

ch2/GlobalCatcher.java:18–23  ·  view source on GitHub ↗
(Exception ex, Model m)

Source from the content-addressed store, hash-verified

16 }
17
18 @ExceptionHandler(Exception.class)
19 public String catcher(Exception ex, Model m) {
20 m.addAttribute("ex", ex);
21
22 return "error";
23 }
24 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected