Skip to content

Commit 2ffbd4b

Browse files
baltzellCopilot
andcommitted
cast and rethrow exception
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent bb25416 commit 2ffbd4b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎common-tools/clara-io/src/main/java/org/jlab/io/clara/Clas12Reader.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ protected Object createReader(Path path, JSONObject opts) throws EventReaderExce
2626
if (path.toString().endsWith(".hipo")) {
2727
type = Clas12Types.HIPO;
2828
HipoReader r = new HipoReader();
29-
r.open(path.toString());
30-
return r;
29+
try {
30+
r.open(path.toString());
31+
return r;
32+
} catch (Exception e) {
33+
throw new EventReaderException(e);
34+
}
3135
}
3236
else {
3337
type = Clas12Types.EVIO;

0 commit comments

Comments
 (0)