mirror of
https://github.com/processing/processing4.git
synced 2026-02-01 12:51:37 +01:00
lots of changes from sunday/monday morning in japan
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user