-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 경매 구매 요청 시 경매 재고가 부족하다면 200응답을 주도록 변경한다. (#321)
* feat: 성공 상태를 반환하는 커스텀 예외 추가 및 핸들링 * feat: 경매 재고가 부족한 요청과, 구매 불가능한 수량을 요청했을때의 상황을 분리하여 처리합니다. - 경매 재고가 부족하면 200으로 반환 처리되는 예외를 발생 - 구매 불가능한 수량을 요청한 경우 BadReqeustException을 발생시킵니다. * docs: api docs 에러코드 업데이트
- Loading branch information
Showing
8 changed files
with
139 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Team7-ELEVEN | ||
|
||
[API-DOCS](https://woowa-techcamp-2024.github.io/Team7-ELEVEN/src/main/resources/static/index.html) | ||
[API-DOCS](https://woowa-techcamp-2024.github.io/Team7-ELEVEN/src/main/resources/docs/index.html) |
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
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
8 changes: 8 additions & 0 deletions
8
...in/java/com/wootecam/luckyvickyauction/global/exception/SuccessfulOperationException.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,8 @@ | ||
package com.wootecam.luckyvickyauction.global.exception; | ||
|
||
public class SuccessfulOperationException extends CustomException { | ||
|
||
public SuccessfulOperationException(String message, ErrorCode errorCode) { | ||
super(message, errorCode); | ||
} | ||
} |
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
Oops, something went wrong.