Mercurial Hosting > luan
comparison src/luan/LuanJavaFunction.java @ 115:eacf6ce1b47d
add IoLib
git-svn-id: https://luan-java.googlecode.com/svn/trunk@116 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 29 May 2014 09:26:44 +0000 |
parents | 8c706d6eb5dc |
children | d7be9b3abf1a |
comparison
equal
deleted
inserted
replaced
114:c599206448b9 | 115:eacf6ce1b47d |
---|---|
72 throw new RuntimeException(e); | 72 throw new RuntimeException(e); |
73 } catch(InvocationTargetException e) { | 73 } catch(InvocationTargetException e) { |
74 Throwable cause = e.getCause(); | 74 Throwable cause = e.getCause(); |
75 if( cause instanceof Error ) | 75 if( cause instanceof Error ) |
76 throw (Error)cause; | 76 throw (Error)cause; |
77 if( cause instanceof RuntimeException ) | |
78 throw luan.JAVA.exception(cause); | |
79 if( cause instanceof LuanException ) | 77 if( cause instanceof LuanException ) |
80 throw (LuanException)cause; | 78 throw (LuanException)cause; |
81 throw new RuntimeException(e); | 79 throw luan.JAVA.exception(cause); |
82 } catch(InstantiationException e) { | 80 } catch(InstantiationException e) { |
83 throw new RuntimeException(e); | 81 throw new RuntimeException(e); |
84 } | 82 } |
85 return rtnConverter.convert(rtn); | 83 return rtnConverter.convert(rtn); |
86 } | 84 } |