comparison core/src/luan/LuanException.java @ 517:8dcf9e12446b

add Luan.on_luan_close()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 27 May 2015 01:20:49 -0600
parents 2e17b54e69d9
children f99c79b0b426
comparison
equal deleted inserted replaced
516:5752df8a67b5 517:8dcf9e12446b
11 super(msg,cause); 11 super(msg,cause);
12 } 12 }
13 13
14 LuanException(LuanBit bit,Object msg) throws LuanException { 14 LuanException(LuanBit bit,Object msg) throws LuanException {
15 this( bit.luan.toString(msg), msg instanceof Throwable ? (Throwable)msg : null ); 15 this( bit.luan.toString(msg), msg instanceof Throwable ? (Throwable)msg : null );
16 table.rawPut("java",this);
16 table.rawPut("message",msg); 17 table.rawPut("message",msg);
17 for( StackTraceElement ste : bit.stackTrace() ) { 18 for( StackTraceElement ste : bit.stackTrace() ) {
18 LuanTable tbl = new LuanTable(); 19 LuanTable tbl = new LuanTable();
19 tbl.rawPut( "source", ste.call.source.name ); 20 tbl.rawPut( "source", ste.call.source.name );
20 tbl.rawPut( "line", ste.call.lineNumber() ); 21 tbl.rawPut( "line", ste.call.lineNumber() );