-
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.
fix: block duplicate error in image creation
스크랩당 이미지 생성 하나만 하게 수정
- Loading branch information
1 parent
a90d36f
commit 424f927
Showing
4 changed files
with
43 additions
and
12 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
14 changes: 14 additions & 0 deletions
14
src/main/java/capstone/bookdiary/exception/exceptions/ImageAlreadyExistException.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,14 @@ | ||
package capstone.bookdiary.exception.exceptions; | ||
|
||
import capstone.bookdiary.exception.error.ErrorCode; | ||
|
||
public class ImageAlreadyExistException extends CustomException{ | ||
public ImageAlreadyExistException() { | ||
super(ErrorCode.IMAGE_ALREADY_EXIST); | ||
} | ||
|
||
@Override | ||
public ErrorCode getErrorCode() { | ||
return super.getErrorCode(); | ||
} | ||
} |
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