diff --git a/src/main/java/org/swmaestro/repl/gifthub/auth/service/AppleService.java b/src/main/java/org/swmaestro/repl/gifthub/auth/service/AppleService.java index 1965a74f..d2fff634 100644 --- a/src/main/java/org/swmaestro/repl/gifthub/auth/service/AppleService.java +++ b/src/main/java/org/swmaestro/repl/gifthub/auth/service/AppleService.java @@ -90,6 +90,8 @@ public OAuthUserInfoDto getUserInfo(OAuthTokenDto oAuthTokenDto) { throw new BusinessException("IO Exception이 발생하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); } catch (JOSEException e) { throw new RuntimeException(e); + } catch (Exception e) { + throw new BusinessException("오류가 발생했습니다. 다시 시도해 주세요!", StatusEnum.INTERNAL_SERVER_ERROR); } return null; diff --git a/src/main/java/org/swmaestro/repl/gifthub/auth/service/GoogleService.java b/src/main/java/org/swmaestro/repl/gifthub/auth/service/GoogleService.java index 801014fe..cb2f6678 100644 --- a/src/main/java/org/swmaestro/repl/gifthub/auth/service/GoogleService.java +++ b/src/main/java/org/swmaestro/repl/gifthub/auth/service/GoogleService.java @@ -74,6 +74,8 @@ public OAuthUserInfoDto getUserInfo(OAuthTokenDto oAuthTokenDto) { throw new BusinessException("잘못된 Protocol을 통해 요청하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); } catch (IOException e) { throw new BusinessException("IO Exception이 발생하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); + } catch (Exception e) { + throw new BusinessException("오류가 발생했습니다. 다시 시도해 주세요!", StatusEnum.INTERNAL_SERVER_ERROR); } } diff --git a/src/main/java/org/swmaestro/repl/gifthub/auth/service/KakaoService.java b/src/main/java/org/swmaestro/repl/gifthub/auth/service/KakaoService.java index 36017a98..1b9497fd 100644 --- a/src/main/java/org/swmaestro/repl/gifthub/auth/service/KakaoService.java +++ b/src/main/java/org/swmaestro/repl/gifthub/auth/service/KakaoService.java @@ -72,6 +72,8 @@ public OAuthUserInfoDto getUserInfo(OAuthTokenDto oAuthTokenDto) { throw new BusinessException("잘못된 Protocol을 통해 요청하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); } catch (IOException e) { throw new BusinessException("IO Exception이 발생하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); + } catch (Exception e) { + throw new BusinessException("오류가 발생했습니다. 다시 시도해 주세요!", StatusEnum.INTERNAL_SERVER_ERROR); } } diff --git a/src/main/java/org/swmaestro/repl/gifthub/auth/service/NaverService.java b/src/main/java/org/swmaestro/repl/gifthub/auth/service/NaverService.java index 774fc0cc..c2db5d99 100644 --- a/src/main/java/org/swmaestro/repl/gifthub/auth/service/NaverService.java +++ b/src/main/java/org/swmaestro/repl/gifthub/auth/service/NaverService.java @@ -77,6 +77,8 @@ public OAuthUserInfoDto getUserInfo(OAuthTokenDto oAuthTokenDto) { throw new BusinessException("잘못된 Protocol을 통해 요청하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); } catch (IOException e) { throw new BusinessException("IO Exception이 발생하였습니다.", StatusEnum.INTERNAL_SERVER_ERROR); + } catch (Exception e) { + throw new BusinessException("오류가 발생했습니다. 다시 시도해 주세요!", StatusEnum.INTERNAL_SERVER_ERROR); } }