Skip to content

Commit

Permalink
Renames exception variables for clarity
Browse files Browse the repository at this point in the history
Fixes: SIRI-1036
  • Loading branch information
mkeckmkeck committed Dec 4, 2024
1 parent a4b4403 commit fb5ed77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/sirius/web/data/ExcelExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public ImageCell(byte[] fileData, int colWidthInPixel, String fileName) {
this.colWidthInPixel = colWidthInPixel;
try {
determineImageSize(fileData);
} catch (IOException e) {
throw Exceptions.handle(e);
} catch (IOException exception) {
throw Exceptions.handle(exception);
}
}

Expand Down Expand Up @@ -382,8 +382,8 @@ private void addCell(Row row, Object obj, int columnIndex, CellStyle style) {
.collect(Collectors.joining(", ")));
return;
}
} catch (SQLException e) {
Exceptions.ignore(e);
} catch (SQLException exception) {
Exceptions.ignore(exception);
}
}
cell.setCellValue(createRichTextString(obj.toString()));
Expand Down Expand Up @@ -559,14 +559,14 @@ public void writeToStream(OutputStream stream) {
}
workbook.write(out);
}
} catch (IOException e) {
throw Exceptions.handle(e);
} catch (IOException exception) {
throw Exceptions.handle(exception);
} finally {
if (workbook instanceof SXSSFWorkbook sxssfWorkbook) {
try {
sxssfWorkbook.close();
} catch (IOException e) {
throw Exceptions.handle(e);
} catch (IOException exception) {
throw Exceptions.handle(exception);
}
}
}
Expand Down

0 comments on commit fb5ed77

Please sign in to comment.