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

Method catcher2

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

Source from the content-addressed store, hash-verified

10// @ControllerAdvice // ¸ðµç ÆÐŰÁö¿¡ Àû¿ë
11 public class GlobalCatcher {
12 @ExceptionHandler({NullPointerException.class, FileNotFoundException.class})
13 public String catcher2(Exception ex, Model m) {
14 m.addAttribute("ex", ex);
15 return "error";
16 }
17
18 @ExceptionHandler(Exception.class)
19 public String catcher(Exception ex, Model m) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected