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

Method catcher

ch2/YoilTellerMVC6.java:15–21  ·  view source on GitHub ↗
(Exception ex, BindingResult result)

Source from the content-addressed store, hash-verified

13@Controller
14public class YoilTellerMVC6 {
15 @ExceptionHandler(Exception.class)
16 public String catcher(Exception ex, BindingResult result) {
17 System.out.println("result="+result);
18 System.out.println("error="+result.getFieldError());
19
20 return "yoilError";
21 }
22
23 @RequestMapping("/getYoilMVC6") // http://localhost/ch2/getYoilMVC6
24// public String main(@ModelAttribute("myDate") MyDate date, Model model) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected