diff src/luan/lib/Utils.java @ 88:6ca02b188dba

add LuanBit to clean up code; add repr(); git-svn-id: https://luan-java.googlecode.com/svn/trunk@89 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 27 Feb 2013 23:50:32 +0000
parents 6db8f286fa6c
children eacf6ce1b47d
line wrap: on
line diff
--- a/src/luan/lib/Utils.java	Wed Feb 27 19:42:09 2013 +0000
+++ b/src/luan/lib/Utils.java	Wed Feb 27 23:50:32 2013 +0000
@@ -16,7 +16,7 @@
 
 	public static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException {
 		if( v == null )
-			throw new LuanException(luan,LuanElement.JAVA,"bad argument #1 ("+expected+" expected, got nil)");
+			throw luan.JAVA.exception("bad argument #1 ("+expected+" expected, got nil)");
 	}
 
 	public static String readAll(Reader in)