I have my Spring error controller, and I need to get the actual exception class so I can print stack trace and other things like that. This is my error controller
@Controller
public class ErrorController implements org.springframework.boot.web.servlet.error.ErrorController {
@RequestMapping("/error")
public String handleError() {
return "somethingwentwrong";
}
@Override
public String getErrorPath() {
return null;
}
}
I know its not much, but I need the exception object to be able to do some extra handling.