Skip to content

Commit

Permalink
use IOException for ZXing errors instead of RuntimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Sep 25, 2024
1 parent 80f9299 commit 738a054
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ private static void writeQrCode(final byte[] contents, final OutputStream output
BarcodeFormat.QR_CODE, QR_CODE_PIXEL_SIZE, QR_CODE_PIXEL_SIZE, hints);
MatrixToImageWriter.writeToStream(result, "png", output);
} catch (WriterException e) {
throw new RuntimeException(e);
throw new IOException(e);
}
}

Expand Down

0 comments on commit 738a054

Please sign in to comment.