Skip to content

Commit 159d78a

Browse files
committed
Merge pull request #59 from dietzc/master
DirectoryIndexer: Handle SecurityException
2 parents bf22d6a + 635ef73 commit 159d78a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scijava/annotations/DirectoryIndexer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ else if (file.isFile()) {
9797
+ e.getMessage() + "); skipping");
9898
} catch (ClassNotFoundException e) {
9999
System.err.println("Warning: could not load class '" + className + "'; skipping");
100+
} catch (Throwable e){
101+
System.err.println("Warning: could not load class '" + className + "' ("
102+
+ e.getMessage() + "); skipping");
100103
}
101104
}
102105
}

0 commit comments

Comments
 (0)