-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 조기 종료 시 5분 단위의 가까운 과거 시간으로 종료 시간이 기록된다. - 종료 시간은 시작 시간과 같을 수 없다. - 사용 중인 예약에 대해서만 조기 종료를 할 수 있다. Co-authored-by: Go-Jaecheol <[email protected]>
- Loading branch information
1 parent
25cbf2f
commit eaa505b
Showing
2 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...ourse/zzimkkong/exception/reservation/InvalidMinimumDurationTimeInEarlyStopException.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,13 @@ | ||
package com.woowacourse.zzimkkong.exception.reservation; | ||
|
||
import com.woowacourse.zzimkkong.exception.ZzimkkongException; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class InvalidMinimumDurationTimeInEarlyStopException extends ZzimkkongException { | ||
|
||
private static final String MESSAGE = "조기 종료는 최소 5분 이후부터 가능합니다."; | ||
|
||
public InvalidMinimumDurationTimeInEarlyStopException() { | ||
super(MESSAGE, HttpStatus.BAD_REQUEST); | ||
} | ||
} |
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