diff core/src/luan/LuanException.java @ 576:4723d22062ce

remove LuanBit
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 13 Jul 2015 20:38:26 -0600
parents 7c3ad6db8ac3
children 60c549d43988
line wrap: on
line diff
--- a/core/src/luan/LuanException.java	Mon Jul 13 18:34:31 2015 -0600
+++ b/core/src/luan/LuanException.java	Mon Jul 13 20:38:26 2015 -0600
@@ -11,12 +11,12 @@
 		super(msg,cause);
 	}
 
-	LuanException(LuanBit bit,Object msg) throws LuanException {
-		this( bit.luan.toString(msg), msg instanceof Throwable ? (Throwable)msg : null );
+	LuanException(LuanState luan,Object msg) throws LuanException {
+		this( luan.toString(msg), msg instanceof Throwable ? (Throwable)msg : null );
 		table.rawPut( "java", this );
 		table.rawPut( "message", msg );
-		table.rawPut( "message_string", bit.luan.toString(msg) );
-		for( StackTraceElement ste : bit.stackTrace() ) {
+		table.rawPut( "message_string", luan.toString(msg) );
+		for( StackTraceElement ste : luan.stackTrace ) {
 			LuanTable tbl = new LuanTable();
 			tbl.rawPut( "source", ste.call.source.name );
 			tbl.rawPut( "line", ste.call.lineNumber() );