Skip to content

Commit 7512bc0

Browse files
re-adding a processing.app.SketchException class that extends the newly refactored one, so alternate modes don't break.
1 parent 266e7a5 commit 7512bc0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// temporary band-aid class to support modes which are still looking here for the now-refactored class.
2+
// (would be good to delete this file once all modes are updated to use processing.utils.SketchException)
3+
// - josh giesbrecht
4+
5+
package processing.app;
6+
7+
// extends the refactored class, to defer functionality there and also to hopefully play nicely when
8+
// exception-handling goes to see if this is a processing.utils.SketchException or not!
9+
public class SketchException extends processing.utils.SketchException {
10+
11+
public SketchException(String message) {
12+
super(message);
13+
}
14+
15+
public SketchException(String message, boolean showStackTrace) {
16+
super(message, showStackTrace);
17+
}
18+
19+
public SketchException(String message, int file, int line) {
20+
super(message, file, line);
21+
}
22+
23+
public SketchException(String message, int file, int line, int column) {
24+
super(message, file, line, column);
25+
}
26+
27+
public SketchException(String message, int file, int line, int column, boolean showStackTrace) {
28+
super(message, file, line, column, showStackTrace);
29+
}
30+
}

0 commit comments

Comments
 (0)