comparison core/src/luan/impl/FnCall.java @ 646:cdc70de628b5

simplify LuanException
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Mar 2016 19:58:39 -0600
parents 859c0dedc8b6
children 37f0cf43f191
comparison
equal deleted inserted replaced
645:859c0dedc8b6 646:cdc70de628b5
28 LuanTable t = (LuanTable)o; 28 LuanTable t = (LuanTable)o;
29 Object h = t.getHandler("__call"); 29 Object h = t.getHandler("__call");
30 if( h != null ) 30 if( h != null )
31 return call(luan,h,argVals); 31 return call(luan,h,argVals);
32 } 32 }
33 throw new LuanException(luan, "attempt to call a " + Luan.type(o) + " value" ); 33 throw new LuanException( "attempt to call a " + Luan.type(o) + " value" );
34 } 34 }
35 35
36 @Override public String toString() { 36 @Override public String toString() {
37 return "(FnCall "+fnExpr+" "+args+")"; 37 return "(FnCall "+fnExpr+" "+args+")";
38 } 38 }