-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: 운동일지 완료, 공유 시 운동기록과 운동일지가 완료된 상태인지 확인하는 기능 추가
- [ ] 운동일지 완료시 모든 운동기록들이 완료된 상태인지 체크 - [ ] 운동일지 공유시 운동일지가 완료된 상태인지 체크
- Loading branch information
1 parent
6673004
commit b4bd710
Showing
5 changed files
with
73 additions
and
11 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/ogjg/daitgym/common/exception/journal/NotCompletedExerciseHistory.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,20 @@ | ||
package com.ogjg.daitgym.common.exception.journal; | ||
|
||
import com.ogjg.daitgym.common.exception.CustomException; | ||
import com.ogjg.daitgym.common.exception.ErrorCode; | ||
import com.ogjg.daitgym.common.exception.ErrorData; | ||
|
||
public class NotCompletedExerciseHistory extends CustomException { | ||
|
||
public NotCompletedExerciseHistory() { | ||
super(ErrorCode.NOT_COMPLETED_EXERCISE_HISTORY); | ||
} | ||
|
||
public NotCompletedExerciseHistory(String message) { | ||
super(ErrorCode.NOT_COMPLETED_EXERCISE_HISTORY, message); | ||
} | ||
|
||
public NotCompletedExerciseHistory(ErrorData errorData) { | ||
super(ErrorCode.NOT_COMPLETED_EXERCISE_HISTORY, errorData); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/ogjg/daitgym/common/exception/journal/NotCompletedExerciseJournal.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,20 @@ | ||
package com.ogjg.daitgym.common.exception.journal; | ||
|
||
import com.ogjg.daitgym.common.exception.CustomException; | ||
import com.ogjg.daitgym.common.exception.ErrorCode; | ||
import com.ogjg.daitgym.common.exception.ErrorData; | ||
|
||
public class NotCompletedExerciseJournal extends CustomException { | ||
|
||
public NotCompletedExerciseJournal() { | ||
super(ErrorCode.NOT_COMPLETED_EXERCISE_JOURNAL); | ||
} | ||
|
||
public NotCompletedExerciseJournal(String message) { | ||
super(ErrorCode.NOT_COMPLETED_EXERCISE_JOURNAL, message); | ||
} | ||
|
||
public NotCompletedExerciseJournal(ErrorData errorData) { | ||
super(ErrorCode.NOT_COMPLETED_EXERCISE_JOURNAL, errorData); | ||
} | ||
} |
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