-
Notifications
You must be signed in to change notification settings - Fork 8
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
[AN/USER] 디자인 수정 및 Domain Exception 추가 (#978) #979
Conversation
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.
고생하셨습니다 👍 코멘트 확인해 주세요!
package com.festago.festago.domain.exception | ||
|
||
object BookmarkLimitExceededException : Exception() { | ||
private fun readResolve(): Any = BookmarkLimitExceededException |
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.
readResolve() 어디에 쓰이는 걸까요??
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.
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.
아직 담고 있는 변수가 없어서 object로 바꿧는데 워닝 피하는 용도로 사용했습니다! 자세한 내용은 찾아서 올리겠습니다!
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.
Exception 이 클래스라서 상속받은 것도 클래스인게 일반적이지 않을까요?
메세지랑 상관없이 싱글톤으로 존재하지 않아도 될 것 같아요..!
if (it.isUnauthorized()) { | ||
_event.emit(BookmarkFailure("로그인이 필요해요")) | ||
} | ||
if (it.isBookmarkLimitExceeded()) { | ||
_uiState.value = uiState.copy(bookMarked = false) | ||
_event.emit(BookmarkFailure("북마크는 12개까지 가능해요")) | ||
} |
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.
북마크 할 때도 isNetworkError 처리할 수 있을까요? 북마크 시에는 인터넷 연결이 끊겨도 문제 없이 북마크 되는 것처럼 보입니다. (실제로 북마크 처리 되는 건 아니지만..)
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.
반영했습니다! 추가로 인터넷 문구가 너무 긴거 같아서 "인터넷 연결을 확인해주세요"으로 변경했습니다! 어떠신가요??
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.
굿굿
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.
고생많으셨습니다!
📌 관련 이슈
✨ PR 세부 내용
Screen_recording_20240519_123412.webm