From a7e822ee37f4bb81f667c5c2c6fcb411797f5d42 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 17 Jan 2024 11:30:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=20=EC=B6=9C=EB=A0=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/cmmn/pdf/print/PDFPrintUtil.java | 11 +++++++---- .../service/bean/IntegrationSearchServiceBean.java | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/fims/cmmn/pdf/print/PDFPrintUtil.java b/src/main/java/cokr/xit/fims/cmmn/pdf/print/PDFPrintUtil.java index 0d5db78f..07cd463d 100644 --- a/src/main/java/cokr/xit/fims/cmmn/pdf/print/PDFPrintUtil.java +++ b/src/main/java/cokr/xit/fims/cmmn/pdf/print/PDFPrintUtil.java @@ -156,7 +156,7 @@ public class PDFPrintUtil extends PrintUtil { contentStream.endText(); } catch (IOException e) { - throw new RuntimeException("PDF 파일 출력 중 오류가 발생하였습니다."); + throw new RuntimeException("PDF 파일 출력 중 오류가 발생하였습니다."+e); } } @@ -237,7 +237,8 @@ public class PDFPrintUtil extends PrintUtil { contentStream.drawImage(image, xyAbsolute[0], xyAbsolute[1]-size[1], size[0], size[1]); } } catch (IOException e) { - throw new RuntimeException("PDF 파일 출력 중 오류가 발생하였습니다."); + e.printStackTrace(); + throw new RuntimeException("PDF 파일 출력 중 오류가 발생하였습니다."+e); } } @@ -411,7 +412,8 @@ public class PDFPrintUtil extends PrintUtil { contentStream.stroke(); contentStream.setLineDashPattern(new float[]{}, 0); } catch (IOException e) { - throw new RuntimeException("PDF 파일 출력 중 오류가 발생하였습니다."); + e.printStackTrace(); + throw new RuntimeException("PDF 파일 출력 중 오류가 발생하였습니다."+e); } } @@ -506,7 +508,8 @@ public class PDFPrintUtil extends PrintUtil { ); return fontMap; } catch (IOException e) { - throw new RuntimeException("글꼴 로드 오류"); + e.printStackTrace(); + throw new RuntimeException("글꼴 로드 오류"+e); } } diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/IntegrationSearchServiceBean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/IntegrationSearchServiceBean.java index 2dcd4093..fa57b111 100644 --- a/src/main/java/cokr/xit/fims/sprt/service/bean/IntegrationSearchServiceBean.java +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/IntegrationSearchServiceBean.java @@ -560,7 +560,7 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements } catch (Exception e) { e.printStackTrace(); - throw new RuntimeException(); + throw new RuntimeException("출력오류."+e); } return result;