Jelajahi Sumber

handleException 메소드에 UndeclaredThrowableException 추가

gagamel 5 tahun lalu
induk
melakukan
c759791554

+ 3 - 1
src/main/java/com/style24/core/support/controller/TscBaseController.java

@@ -1,5 +1,6 @@
 package com.style24.core.support.controller;
 
+import java.lang.reflect.UndeclaredThrowableException;
 import java.nio.file.AccessDeniedException;
 import java.sql.SQLException;
 import java.sql.SQLRecoverableException;
@@ -129,7 +130,8 @@ public class TscBaseController {
 		}
 
 		if (throwable instanceof SQLException || throwable instanceof BindingException
-			|| throwable instanceof JsonMappingException) {
+			|| throwable instanceof JsonMappingException
+			|| throwable instanceof UndeclaredThrowableException) {
 			String message = String.format("데이터 처리중 에러가 발생하였습니다. 시스템 관리자에게 문의하세요.");
 			return GagaResponse.error(GagaResponseStatus.INTERNAL_SERVER_ERROR.getCode(), message);
 		}