mirror of
https://github.com/processing/processing4.git
synced 2026-02-10 17:19:25 +01:00
major fix to get code folder working, more error messages coming through
properly
This commit is contained in:
@@ -24,9 +24,10 @@
|
||||
|
||||
|
||||
public class PdeException extends Exception {
|
||||
int file = -1;
|
||||
int line = -1;
|
||||
int column = -1;
|
||||
public int file = -1;
|
||||
public int line = -1;
|
||||
public int column = -1;
|
||||
public boolean hideStackTrace;
|
||||
|
||||
public PdeException() { }
|
||||
|
||||
@@ -52,7 +53,14 @@ public class PdeException extends Exception {
|
||||
this.column = column;
|
||||
}
|
||||
|
||||
// make static so that super() can call it
|
||||
|
||||
/**
|
||||
* Nix the java.lang crap out of an exception message
|
||||
* because it scares the children.
|
||||
*
|
||||
* This function must be static to be used with super()
|
||||
* in each of the constructors above.
|
||||
*/
|
||||
static public final String massage(String msg) {
|
||||
if (msg.indexOf("java.lang.") == 0) {
|
||||
//int dot = msg.lastIndexOf('.');
|
||||
@@ -61,4 +69,11 @@ public class PdeException extends Exception {
|
||||
return msg;
|
||||
//return (dot == -1) ? msg : msg.substring(dot+1);
|
||||
}
|
||||
|
||||
|
||||
public void printStackTrace() {
|
||||
if (!hideStackTrace) {
|
||||
super.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user