Skip to content

Commit 957b770

Browse files
committed
tweak constructor for exception handling change
1 parent 0edcc2b commit 957b770

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/processing/mode/android/AndroidEditor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import processing.app.Mode;
2626
import processing.app.Preferences;
2727
import processing.app.SketchException;
28+
import processing.app.ui.EditorException;
2829
import processing.app.ui.EditorState;
2930
import processing.app.ui.EditorToolbar;
3031
import processing.app.ui.Toolkit;
@@ -130,7 +131,7 @@ public void actionPerformed(ActionEvent e) {
130131

131132

132133
protected AndroidEditor(Base base, String path,
133-
EditorState state, Mode mode) throws Exception {
134+
EditorState state, Mode mode) throws EditorException {
134135
super(base, path, state, mode);
135136
androidMode = (AndroidMode) mode;
136137
androidMode.checkSDK(this);

src/processing/mode/android/AndroidMode.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import processing.app.Sketch;
2929
import processing.app.SketchException;
3030
import processing.app.ui.Editor;
31+
import processing.app.ui.EditorException;
3132
import processing.app.ui.EditorState;
3233
import processing.mode.java.JavaMode;
3334

@@ -50,13 +51,9 @@ public AndroidMode(Base base, File folder) {
5051

5152

5253
@Override
53-
public Editor createEditor(Base base, String path, EditorState state) {
54-
try {
55-
return new AndroidEditor(base, path, state, this);
56-
} catch (Exception e) {
57-
e.printStackTrace();
58-
}
59-
return null;
54+
public Editor createEditor(Base base, String path,
55+
EditorState state) throws EditorException {
56+
return new AndroidEditor(base, path, state, this);
6057
}
6158

6259

0 commit comments

Comments
 (0)