Replies: 1 comment
-
|
현상유지 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
현재 저희는 생명주기가 동일한 데이터의 경우 하나의 도메인에 넣어 관리하고 있습니다. (ex: study 도메인에 있는 study와 curriculumItem)

이때 예외처리를 위해 아래와 같이 각 엔티티마다 ExceptionType과 Exception 클래스를 만들고 있는데 ExceptionType은 분리하되 Exception은 하나를 공유해 사용해도 괜찮지 않나 생각합니다.
아니면 그냥 BaseException에 지금 쓰고있는 Exception 코드를 다 옮겨놓고 모든 예외처리를 BaseException을 사용해서 하면 안되나..? 싶기도 합니다. ExceptionType를 분리했으니 그래도 상관없지 않나...?
Beta Was this translation helpful? Give feedback.
All reactions