mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 22:29:18 +01:00
checking in dmose parser and changes to make it usable
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
public class PdeException extends Exception {
|
||||
int line = -1;
|
||||
int column = -1;
|
||||
|
||||
public PdeException() { }
|
||||
|
||||
@@ -39,6 +40,13 @@ public class PdeException extends Exception {
|
||||
this.line = line;
|
||||
}
|
||||
|
||||
// 0060 currently only used by the new preprocessor
|
||||
public PdeException(String message, int line, int column) {
|
||||
super(massage(message));
|
||||
this.line = line;
|
||||
this.column = column;
|
||||
}
|
||||
|
||||
// make static so that super() can call it
|
||||
static public final String massage(String msg) {
|
||||
if (msg.indexOf("java.lang.") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user