Mercurial Hosting > luan
comparison core/src/luan/impl/Closure.java @ 646:cdc70de628b5
simplify LuanException
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 19:58:39 -0600 |
parents | 859c0dedc8b6 |
children | f1150518c467 |
comparison
equal
deleted
inserted
replaced
645:859c0dedc8b6 | 646:cdc70de628b5 |
---|---|
39 | 39 |
40 @Override public Object call(LuanState luan,Object[] args) throws LuanException { | 40 @Override public Object call(LuanState luan,Object[] args) throws LuanException { |
41 try { | 41 try { |
42 return call(this,(LuanStateImpl)luan,args); | 42 return call(this,(LuanStateImpl)luan,args); |
43 } catch(StackOverflowError e) { | 43 } catch(StackOverflowError e) { |
44 throw new LuanException(luan, "stack overflow" ); | 44 throw new LuanException( "stack overflow", e ); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 private static Object call(Closure closure,LuanStateImpl luan,Object[] args) throws LuanException { | 48 private static Object call(Closure closure,LuanStateImpl luan,Object[] args) throws LuanException { |
49 while(true) { | 49 while(true) { |