comparison http/src/luan/modules/http/HttpServicer.java @ 578:60c549d43988

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents 6cc2f047019b
children 53a50c70c5e2
comparison
equal deleted inserted replaced
577:d7a85fbe15f1 578:60c549d43988
49 LuanTable per_session_pages = (LuanTable)module.rawGet("per_session_pages"); 49 LuanTable per_session_pages = (LuanTable)module.rawGet("per_session_pages");
50 Object mod = PackageLuan.load(luan,modName); 50 Object mod = PackageLuan.load(luan,modName);
51 if( mod==null ) 51 if( mod==null )
52 return false; 52 return false;
53 if( !(mod instanceof LuanFunction) ) 53 if( !(mod instanceof LuanFunction) )
54 throw luan.exception( "module '"+modName+"' must return a function" ); 54 throw new LuanException(luan, "module '"+modName+"' must return a function" );
55 if( Boolean.TRUE.equals(per_session_pages.rawGet(mod)) ) { 55 if( Boolean.TRUE.equals(per_session_pages.rawGet(mod)) ) {
56 HttpSession session = request.getSession(); 56 HttpSession session = request.getSession();
57 LuanState sessionLuan = (LuanState)session.getValue("luan"); 57 LuanState sessionLuan = (LuanState)session.getValue("luan");
58 if( sessionLuan!=null ) { 58 if( sessionLuan!=null ) {
59 luan = sessionLuan; 59 luan = sessionLuan;