[Architecture] ByeBooError의 레이어 위치가 적절한가? #455
juri123123
announced in
Announcements
Replies: 1 comment
|
레이어별로 명확하게 구분되어있는 것 같진 않아요,,! |
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.
🧐 Background
현재 에러 처리는
Core의ByeBooError타입 하나로 전체 레이어(Domain, Data, Feature/Presentation, Core/Network)에서 공유되고 있습니다.처음엔 편의상 자연스러운 선택이었지만, 몇 가지 문제가 보여 의견을 나눠보고 싶습니다.
레이어 간 관심사 혼재
Network 에러(HTTP 상태코드, timeout), Domain 에러(비즈니스 규칙 위반), UI 에러(사용자 피드백용 메시지)는 성격이 다름에도 같은 타입에서 표현되고 있습니다. 이로 인해:
ByeBooError의 케이스가 비대해지거나🙋 Questions for the team
@dev-domo @y-eonee
ByeBooError의 케이스가 레이어별로 명확히 구분되어 있다고 느끼시나요?관련 파일:
Core/Sources/Error/ByeBooError.swiftAll reactions