lots of changes from sunday/monday morning in japan

This commit is contained in:
benfry
2001-08-06 02:02:44 +00:00
parent e3395f991e
commit 4df45d0531
6 changed files with 201 additions and 75 deletions

View File

@@ -4,14 +4,25 @@ public class PdeException extends Exception {
public PdeException() { }
public PdeException(String message) {
super(message);
super(massage(message));
//System.out.println("message for this error is " + message);
}
public PdeException(String message, int line) {
super(message);
super(massage(message));
this.line = line;
}
// make static so that super() can call it
static public final String massage(String msg) {
if (msg.indexOf("java.lang.") == 0) {
//int dot = msg.lastIndexOf('.');
msg = msg.substring("java.lang.".length());
}
return msg;
//return (dot == -1) ? msg : msg.substring(dot+1);
}
#ifndef PLAYER
#ifdef DBN
public PdeException(String message, DbnToken token) {