comparison src/luan/LuanException.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 8ede219cd111
children 14281d5bd36f
comparison
equal deleted inserted replaced
87:eaf37cfa30c2 88:6ca02b188dba
2 2
3 3
4 public class LuanException extends Exception { 4 public class LuanException extends Exception {
5 private final String stackTrace; 5 private final String stackTrace;
6 6
7 public LuanException(LuanState luan,LuanElement el,Object msg) { 7 LuanException(LuanBit bit,Object msg) {
8 super(message(msg),cause(msg)); 8 super(message(msg),cause(msg));
9 stackTrace = stackTrace(luan,el,msg); 9 stackTrace = stackTrace(bit.luan,bit.el,msg);
10 } 10 }
11 11
12 @Override public String getMessage() { 12 @Override public String getMessage() {
13 return super.getMessage() + stackTrace; 13 return super.getMessage() + stackTrace;
14 } 14 }