g-market / b-shop-backend

0 stars 0 forks source link

Follow-up from "feat: 프로젝트 초기 엔티티 생성 및 redis, jpa 설정과 테스트 추가..." #20

Closed halucinor closed 1 year ago

halucinor commented 1 year ago

In GitLab by @Charlie on Feb 9, 2023, 17:58

The following discussion from !17 should be addressed:

halucinor commented 1 year ago

In GitLab by @Charlie on Feb 9, 2023, 18:11

@mentee/mentee_2023.01/team/g-market

halucinor commented 1 year ago

In GitLab by @haaeee on Feb 10, 2023, 17:04

marked the checklist item @Charlie started a discussion: (+1 comment) as completed

halucinor commented 1 year ago

In GitLab by @haaeee on Feb 10, 2023, 17:09

@Charlie

원래 Spring에서 제공하는 기본 Exception을 가지고 예외처리를 하는 방식으로 개발을 하려고 진행하였습니다.

이에 따라 각자 Spring에서 제공하는 Exception을 찾아보면서 사용하다가 찾지 못하는 경우

각자 개발하면서 필요할 때 마다 CustomException(Jaime), OutOfStockException(Jenna)을 설정하여 사용하였습니다.

--

이에 따라, 이후 발표 후에 토의해본 결과, Spring에서 제공하는 Exception을 사용하면서 개발하면

시간이 더 오래 걸릴 것 같아 CustomException을 상속 받은 Exception 과 ErrorCode(에러 메시지 Enum 관리)로 통합할 예정입니다.

CustomException을 상속 받아 개발을 진행할 예정입니다.

이후 변경점 또한 Comment에 Commit Hash값을 남기도록 하겠습니다.