comparison core/src/luan/LuanException.java @ 578:60c549d43988

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents 4723d22062ce
children 859c0dedc8b6
comparison
equal deleted inserted replaced
577:d7a85fbe15f1 578:60c549d43988
9 9
10 private LuanException(String msg,Throwable cause) { 10 private LuanException(String msg,Throwable cause) {
11 super(msg,cause); 11 super(msg,cause);
12 } 12 }
13 13
14 LuanException(LuanState luan,Object msg) throws LuanException { 14 public LuanException(LuanState luan,Object msg) throws LuanException {
15 this( luan.toString(msg), msg instanceof Throwable ? (Throwable)msg : null ); 15 this( luan.toString(msg), msg instanceof Throwable ? (Throwable)msg : null );
16 table.rawPut( "java", this ); 16 table.rawPut( "java", this );
17 table.rawPut( "message", msg ); 17 table.rawPut( "message", msg );
18 table.rawPut( "message_string", luan.toString(msg) ); 18 table.rawPut( "message_string", luan.toString(msg) );
19 for( StackTraceElement ste : luan.stackTrace ) { 19 for( StackTraceElement ste : luan.stackTrace ) {