Mercurial Hosting > luan
diff core/src/luan/LuanPropertyMeta.java @ 578:60c549d43988
remove LuanState.exception()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Jul 2015 17:40:48 -0600 |
parents | 6cc2f047019b |
children | cdc70de628b5 |
line wrap: on
line diff
--- a/core/src/luan/LuanPropertyMeta.java Mon Jul 13 20:53:02 2015 -0600 +++ b/core/src/luan/LuanPropertyMeta.java Tue Jul 14 17:40:48 2015 -0600 @@ -26,7 +26,7 @@ if( obj == null ) return null; if( !(obj instanceof LuanFunction) ) - throw luan.exception("get for '"+key+"' isn't a function"); + throw new LuanException(luan,"get for '"+key+"' isn't a function"); LuanFunction fn = (LuanFunction)obj; return fn.call(luan); } @@ -59,7 +59,7 @@ return; } if( !(obj instanceof LuanFunction) ) - throw luan.exception("set for '"+key+"' isn't a function"); + throw new LuanException(luan,"set for '"+key+"' isn't a function"); LuanFunction fn = (LuanFunction)obj; fn.call(luan,new Object[]{value}); }