Mercurial Hosting > luan
diff core/src/luan/modules/HtmlLuan.java @ 578:60c549d43988
remove LuanState.exception()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Jul 2015 17:40:48 -0600 |
parents | 7c3ad6db8ac3 |
children | a3c1e11fb6aa |
line wrap: on
line diff
--- a/core/src/luan/modules/HtmlLuan.java Mon Jul 13 20:53:02 2015 -0600 +++ b/core/src/luan/modules/HtmlLuan.java Tue Jul 14 17:40:48 2015 -0600 @@ -284,7 +284,7 @@ LuanTable t = (LuanTable)o; String type = (String)t.get(luan,"type"); if( type==null ) - throw luan.exception( "no type in element of table for 'Html.to_string'" ); + throw new LuanException(luan, "no type in element of table for 'Html.to_string'" ); if( type.equals("comment") ) { buf.append( "<!--" ).append( t.get(luan,"text") ).append( "-->" ); } else if( type.equals("cdata") ) { @@ -297,10 +297,10 @@ buf.append( t.get(luan,"text") ); buf.append( "</" ).append( tag.get(luan,"name") ).append( ">" ); } else { - throw luan.exception( "invalid element type for 'Html.to_string'" ); + throw new LuanException(luan, "invalid element type for 'Html.to_string'" ); } } else - throw luan.exception( "invalid value ("+Luan.type(o)+") in table for 'Html.to_string'" ); + throw new LuanException(luan, "invalid value ("+Luan.type(o)+") in table for 'Html.to_string'" ); } return buf.toString(); }