-
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.
CustomException -> CustomApiException 으로 네이밍 변경
- 기존 Exception -> ApiException ResponseUtil - jwt 토큰 expired 시, 혹은 유효하지 않은 접근시, response의 error 응답을 json 응답구현
- Loading branch information
Showing
41 changed files
with
197 additions
and
216 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/main/java/site/chagok/server/common/exception/AuthorizationApiException.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 site.chagok.server.common.exception; | ||
|
||
public class AuthorizationApiException extends CustomApiException { | ||
|
||
public AuthorizationApiException(String code, String state) { | ||
super(401, code, state); | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
src/main/java/site/chagok/server/common/exception/AuthorizationException.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
src/main/java/site/chagok/server/common/exception/BoardNotFoundApiException.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 site.chagok.server.common.exception; | ||
|
||
public class BoardNotFoundApiException extends NotFoundApiException { | ||
|
||
public BoardNotFoundApiException() { | ||
super("board_001", "cannot find board"); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/main/java/site/chagok/server/common/exception/BoardNotFoundException.java
This file was deleted.
Oops, something went wrong.
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
src/main/java/site/chagok/server/common/exception/NotFoundApiException.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 site.chagok.server.common.exception; | ||
|
||
public class NotFoundApiException extends CustomApiException { | ||
|
||
public NotFoundApiException(String code, String state) { | ||
super(404, code, state); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/main/java/site/chagok/server/common/exception/NotFoundException.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/site/chagok/server/common/exception/UpdateInfoApiException.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,9 @@ | ||
package site.chagok.server.common.exception; | ||
|
||
|
||
public class UpdateInfoApiException extends CustomApiException { | ||
|
||
public UpdateInfoApiException(String code, String state) { | ||
super(400, code, state); | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
src/main/java/site/chagok/server/contest/exception/CommentNotFoundApiException.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,10 @@ | ||
package site.chagok.server.contest.exception; | ||
|
||
import site.chagok.server.common.exception.NotFoundApiException; | ||
|
||
public class CommentNotFoundApiException extends NotFoundApiException { | ||
|
||
public CommentNotFoundApiException() { | ||
super("comment_01", "cannot find comment"); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/site/chagok/server/contest/exception/CommentNotFoundException.java
This file was deleted.
Oops, something went wrong.
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
10 changes: 10 additions & 0 deletions
10
src/main/java/site/chagok/server/member/exception/ImgFileNotFoundApiException.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,10 @@ | ||
package site.chagok.server.member.exception; | ||
|
||
import site.chagok.server.common.exception.NotFoundApiException; | ||
|
||
public class ImgFileNotFoundApiException extends NotFoundApiException { | ||
|
||
public ImgFileNotFoundApiException() { | ||
super("image_01", "cannot get profile image"); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/main/java/site/chagok/server/member/exception/ImgFileNotFoundException.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/site/chagok/server/member/exception/InvalidMemberApiException.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,9 @@ | ||
package site.chagok.server.member.exception; | ||
|
||
import site.chagok.server.common.exception.AuthorizationApiException; | ||
|
||
public class InvalidMemberApiException extends AuthorizationApiException { | ||
public InvalidMemberApiException() { | ||
super("invalid_01", "invalid member"); | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
src/main/java/site/chagok/server/member/exception/InvalidMemberException.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/main/java/site/chagok/server/member/exception/MemberNotFoundApiException.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,10 @@ | ||
package site.chagok.server.member.exception; | ||
|
||
import site.chagok.server.common.exception.NotFoundApiException; | ||
|
||
public class MemberNotFoundApiException extends NotFoundApiException { | ||
|
||
public MemberNotFoundApiException() { | ||
super("member_01", "cannot find member"); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/main/java/site/chagok/server/member/exception/MemberNotFoundException.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/main/java/site/chagok/server/member/exception/NickNameExistsApiException.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,10 @@ | ||
package site.chagok.server.member.exception; | ||
|
||
import site.chagok.server.common.exception.UpdateInfoApiException; | ||
|
||
public class NickNameExistsApiException extends UpdateInfoApiException { | ||
|
||
public NickNameExistsApiException() { | ||
super("nickname_01", "nickname already exists"); | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
src/main/java/site/chagok/server/member/exception/NickNameExistsException.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/main/java/site/chagok/server/member/exception/RequestInfoException.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/main/java/site/chagok/server/member/exception/ScrapNotFoundApiException.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,10 @@ | ||
package site.chagok.server.member.exception; | ||
|
||
import site.chagok.server.common.exception.NotFoundApiException; | ||
|
||
public class ScrapNotFoundApiException extends NotFoundApiException { | ||
|
||
public ScrapNotFoundApiException() { | ||
super("scrap_01", "cannot find board scrap data"); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/site/chagok/server/member/exception/ScrapNotFoundException.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/main/java/site/chagok/server/member/exception/UpdateInfoException.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.