Skip to content

Commit 9efa757

Browse files
authored
Merge pull request #394 from prgrms-web-devcourse-final-project/develop
Exception 핸들링 주석처리 (#393)
2 parents ebc727e + deb43e4 commit 9efa757

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

back/src/main/java/com/back/global/globalExceptionHandler/GlobalExceptionHandler.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,17 @@ public ResponseEntity<RsData<Void>> handle(ServiceException ex) {
148148
);
149149
}
150150

151-
@ExceptionHandler(Exception.class)
152-
public ResponseEntity<RsData<Void>> handle(Exception ex) {
153-
log.error("Unhandled exception occurred", ex);
154-
Sentry.captureException(ex);
155-
156-
return new ResponseEntity<>(
157-
new RsData<>(
158-
"500-1",
159-
"서버 오류가 발생했습니다."
160-
),
161-
INTERNAL_SERVER_ERROR
162-
);
163-
}
164-
}
151+
// @ExceptionHandler(Exception.class)
152+
// public ResponseEntity<RsData<Void>> handle(Exception ex) {
153+
// log.error("Unhandled exception occurred", ex);
154+
// Sentry.captureException(ex);
155+
//
156+
// return new ResponseEntity<>(
157+
// new RsData<>(
158+
// "500-1",
159+
// "서버 오류가 발생했습니다."
160+
// ),
161+
// INTERNAL_SERVER_ERROR
162+
// );
163+
// }
164+
}

0 commit comments

Comments
 (0)