From 73782f5533218a248a119aa73787a93171a222c1 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 8 May 2023 05:34:57 +0900 Subject: [PATCH] =?UTF-8?q?applicationException(Throwable)=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/foundation/component/AbstractMapper.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/cokr/xit/foundation/component/AbstractMapper.java b/src/main/java/cokr/xit/foundation/component/AbstractMapper.java index fd899e8..e5c2a65 100644 --- a/src/main/java/cokr/xit/foundation/component/AbstractMapper.java +++ b/src/main/java/cokr/xit/foundation/component/AbstractMapper.java @@ -1,5 +1,6 @@ package cokr.xit.foundation.component; +import cokr.xit.foundation.ApplicationException; import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.data.DataObject; @@ -98,4 +99,10 @@ public interface AbstractMapper extends return new DataObject() .set("currentUser", currentUser()); } + + /**{@link ApplicationException#get(Throwable)} 참고 + */ + default ApplicationException applicationException(Throwable t) { + return ApplicationException.get(null); + } } \ No newline at end of file