exception handling for rest services

This commit is contained in:
rlawson 2014-08-09 20:15:14 -04:00
parent 897e47f926
commit 1430be8686

View File

@ -35,7 +35,6 @@ public class LessonMenuService extends BaseService {
@RequestMapping(value = "/lessonmenu.mvc", produces = "application/json") @RequestMapping(value = "/lessonmenu.mvc", produces = "application/json")
public @ResponseBody public @ResponseBody
List<LessonMenuItem> showLeftNav(HttpSession session) { List<LessonMenuItem> showLeftNav(HttpSession session) {
if(true) throw new IllegalArgumentException("No valid session object found, has session timed out?");
List<LessonMenuItem> menu = new ArrayList<LessonMenuItem>(); List<LessonMenuItem> menu = new ArrayList<LessonMenuItem>();
WebSession ws; WebSession ws;
Object o = session.getAttribute(WebSession.SESSION); Object o = session.getAttribute(WebSession.SESSION);