-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(Comment): 댓글 작성시 성별이 다를 경우 댓글 생성 거부 * refactor(CommentService): 성별 확인 분기 순서 변경 * refactor(CommentService): 성별 확인 != 대신 equals 사용 * refactor(CommentService): equals 대신 != 사용 * refactor(CommentService): 필요없는 () 제거
- Loading branch information
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/econo/buddybridge/comment/exception/CommentSameGenderOnlyException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package econo.buddybridge.comment.exception; | ||
|
||
import econo.buddybridge.common.exception.BusinessException; | ||
|
||
public class CommentSameGenderOnlyException extends BusinessException { | ||
|
||
public static final BusinessException EXCEPTION = new CommentSameGenderOnlyException(); | ||
|
||
private CommentSameGenderOnlyException() { | ||
super(CommentErrorCode.COMMENT_SAME_GENDER_ONLY); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters