From 738a054dc72ddf44621390b5f71d7bf02ae9ad72 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 25 Sep 2024 18:22:39 -0400 Subject: [PATCH] use IOException for ZXing errors instead of RuntimeException --- src/main/java/app/attestation/server/AttestationServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/app/attestation/server/AttestationServer.java b/src/main/java/app/attestation/server/AttestationServer.java index 9ba9d348..e2e1dd4d 100644 --- a/src/main/java/app/attestation/server/AttestationServer.java +++ b/src/main/java/app/attestation/server/AttestationServer.java @@ -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); } }