diff src/luan/LuanJavaFunction.java @ 130:0594c132888b

cleanup git-svn-id: https://luan-java.googlecode.com/svn/trunk@131 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 10 Jun 2014 02:43:40 +0000
parents 486a0641bca4
children 1de3e4a6e82d
line wrap: on
line diff
--- a/src/luan/LuanJavaFunction.java	Mon Jun 09 09:16:16 2014 +0000
+++ b/src/luan/LuanJavaFunction.java	Tue Jun 10 02:43:40 2014 +0000
@@ -76,7 +76,7 @@
 				throw (Error)cause;
 			if( cause instanceof LuanException )
 				throw (LuanException)cause;
-			throw luan.JAVA.exception(cause);
+			throw luan.exception(cause);
 		} catch(InstantiationException e) {
 			throw new RuntimeException(e);
 		}
@@ -109,10 +109,10 @@
 				String expected = paramType.getSimpleName();
 				if( arg==null ) {
 					if( paramType.isPrimitive() )
-						throw luan.JAVA.exception("bad argument #"+(i+1-start)+" ("+expected+" expected, got nil)");
+						throw luan.exception("bad argument #"+(i+1-start)+" ("+expected+" expected, got nil)");
 				} else {
 					String got = arg.getClass().getSimpleName();
-					throw luan.JAVA.exception("bad argument #"+(i+1-start)+" ("+expected+" expected, got "+got+")");
+					throw luan.exception("bad argument #"+(i+1-start)+" ("+expected+" expected, got "+got+")");
 				}
 			}
 		}