Mercurial Hosting > luan
comparison core/src/luan/LuanJavaFunction.java @ 477:b8ddd55c9b11
delete LuanExitException
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 14:36:33 -0600 |
parents | 0bd42e774c50 |
children | f1601a4ce1aa |
comparison
equal
deleted
inserted
replaced
476:cd22e4694ea3 | 477:b8ddd55c9b11 |
---|---|
92 Throwable cause = e.getCause(); | 92 Throwable cause = e.getCause(); |
93 if( cause instanceof Error ) | 93 if( cause instanceof Error ) |
94 throw (Error)cause; | 94 throw (Error)cause; |
95 if( cause instanceof LuanException ) | 95 if( cause instanceof LuanException ) |
96 throw (LuanException)cause; | 96 throw (LuanException)cause; |
97 if( cause instanceof LuanExitException ) | |
98 throw (LuanExitException)cause; | |
99 throw luan.exception(cause); | 97 throw luan.exception(cause); |
100 } catch(InstantiationException e) { | 98 } catch(InstantiationException e) { |
101 throw new RuntimeException(e); | 99 throw new RuntimeException(e); |
102 } | 100 } |
103 return rtnConverter.convert(rtn); | 101 return rtnConverter.convert(rtn); |