-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: csv dependency 추가 및 예외 메세지 이름 변경
- Loading branch information
1 parent
721b709
commit 64c21c8
Showing
7 changed files
with
41 additions
and
25 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
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
17 changes: 0 additions & 17 deletions
17
src/main/java/com/spaceclub/global/annotation/profanity/BadWordExceptionMessage.java
This file was deleted.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/spaceclub/global/annotation/profanity/ProfanityExceptionMessage.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,22 @@ | ||
package com.spaceclub.global.annotation.profanity; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum ProfanityExceptionMessage { | ||
|
||
FAIL_BAD_WORD_SETUP("비속어 목록 Trie 생성 실패"), | ||
BAD_WORD_DETECTED("비속어가 발견 되었습니다"), | ||
INVALID_EXTENSION("md,txt 파일만 업로드 가능합니다."), | ||
FAILED_TO_SAVE("금칙어 저장에 실패하였습니다."), | ||
BAD_WORD_ALREADY_EXISTS("이미 존재하는 금칙어입니다."), | ||
FAILED_TO_CREATE_CSV("CSV 파일 생성에 실패하였습니다.") | ||
; | ||
|
||
private final String message; | ||
|
||
ProfanityExceptionMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
} |
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