exception handling for rest services
This commit is contained in:
parent
897e47f926
commit
1430be8686
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user