Mercurial Hosting > luan
comparison core/src/luan/impl/FnCall.java @ 578:60c549d43988
remove LuanState.exception()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Jul 2015 17:40:48 -0600 |
parents | d7a85fbe15f1 |
children | 859c0dedc8b6 |
comparison
equal
deleted
inserted
replaced
577:d7a85fbe15f1 | 578:60c549d43988 |
---|---|
34 LuanTable t = (LuanTable)o; | 34 LuanTable t = (LuanTable)o; |
35 Object h = t.getHandler("__call"); | 35 Object h = t.getHandler("__call"); |
36 if( h != null ) | 36 if( h != null ) |
37 return call(luan,h,argVals); | 37 return call(luan,h,argVals); |
38 } | 38 } |
39 throw luan.exception( "attempt to call '"+fnName+"' (a " + Luan.type(o) + " value)" ); | 39 throw new LuanException(luan, "attempt to call '"+fnName+"' (a " + Luan.type(o) + " value)" ); |
40 } finally { | 40 } finally { |
41 luan.pop(); | 41 luan.pop(); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |