-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT/YAF-000] 사용자 등록/조회 연결을 진행합니다. #112
Conversation
private val apiService: ApiService, | ||
) : UserInfoDataSource { | ||
override suspend fun getUserInfo(userId: Long): Result<UserResponse> { | ||
return safeApiCall { apiService.getUserInfo(userId) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[p3]
이 친구는 예외처리 안한 이유가??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 좋아하는 명언이 있습니다.
"예외처리는 성능때문에 뺐다" 라는 말인데요. 그래서 저도 뺐습니다. 라고하면 안되겠죠~? ㅋㅋ
safeApiCall 내부에서 예외가 발생하면 Result.failure(exception)이 반환되는 구조라 예외처리를 안했는데. 생각해보니까
성공해도 body가 null로 넘어올때의 예외처리를 해야될 것 같네용 아닌가? null이 오는 경우가 없나요? 허,,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다
default.mp4오류 발견이용.... |
Related issue 🛠
closed #110
어떤 변경사항이 있었나요?
CheckPoint ✅
PR이 다음 요구 사항을 충족하는지 확인하세요.
Work Description ✏️
Uncompleted Tasks 😅
To Reviewers 📢