-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: getUser 에서 유저가 발견되지 않으면 오류 발생 (#13)
- Loading branch information
1 parent
532dfa7
commit 3af39af
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/main/java/com/github/winkathon/lingo/domain/user/exception/UserNotFoundException.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.github.winkathon.lingo.domain.user.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
import com.github.winkathon.lingo.common.api.exception.ApiException; | ||
|
||
public class UserNotFoundException extends ApiException { | ||
|
||
public UserNotFoundException() { | ||
|
||
super(HttpStatus.NOT_FOUND, "유저를 찾을 수 없습니다."); | ||
} | ||
} |
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