Skip to content

Commit fb6db0b

Browse files
committed
Continue loading custom classes if error found in one of them.
1 parent 22738d1 commit fb6db0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adventure-editor/src/main/java/com/bladecoder/engineeditor/common/FolderClassLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ private void loadClassesInFolder(File folder, String classPackage) throws IOExce
9595

9696
classes.put(className, result);
9797
}
98-
} catch (IOException | NoClassDefFoundError e) {
98+
} catch (NoClassDefFoundError e) {
99+
EditorLogger.error("ERROR - Could not load class: " + e.getMessage());
100+
} catch (IOException e) {
99101
throw e;
100102
} finally {
101103
is.close();

0 commit comments

Comments
 (0)