File tree 1 file changed +3
-0
lines changed
src/main/java/com/softeer/podoarrival/event/controller
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import com .softeer .podoarrival .common .response .CommonResponse ;
5
5
import com .softeer .podoarrival .event .exception .AsyncRequestExecuteException ;
6
+ import com .softeer .podoarrival .event .exception .EventClosedException ;
6
7
import com .softeer .podoarrival .event .exception .ExistingUserException ;
7
8
import com .softeer .podoarrival .event .model .dto .ArrivalApplicationResponseDto ;
8
9
import com .softeer .podoarrival .event .service .ArrivalEventService ;
@@ -35,6 +36,8 @@ public CompletableFuture<CommonResponse<ArrivalApplicationResponseDto>> arrivalE
35
36
// 내부 예외 처리
36
37
if (ex .getCause () instanceof ExistingUserException ) {
37
38
throw new ExistingUserException ("[비동기 에러] 유저가 이미 존재합니다." );
39
+ } else if (ex .getCause () instanceof EventClosedException ){
40
+ throw new EventClosedException (ex .getMessage ());
38
41
} else {
39
42
log .error ("Exception occurred while arrival application" , ex );
40
43
throw new AsyncRequestExecuteException ("[비동기 에러] 선착순 요청 중 서버 오류 발생" );
You can’t perform that action at this time.
0 commit comments