-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from woowacourse-teams/develop
v1.2.1 배포 🙇🏻♂️
- Loading branch information
Showing
151 changed files
with
4,585 additions
and
1,143 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
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
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
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
17 changes: 10 additions & 7 deletions
17
backend/src/main/java/com/pickpick/exception/SlackApiCallException.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 |
---|---|---|
@@ -1,19 +1,22 @@ | ||
package com.pickpick.exception; | ||
|
||
import com.slack.api.methods.SlackApiTextResponse; | ||
|
||
public class SlackApiCallException extends RuntimeException { | ||
|
||
private static final String DEFAULT_MESSAGE = "슬랙 API 호출 실패"; | ||
|
||
public SlackApiCallException(final Exception e) { | ||
super(e); | ||
} | ||
|
||
public SlackApiCallException(final String apiMethod) { | ||
super(String.format("%s -> api method : %s", DEFAULT_MESSAGE, apiMethod)); | ||
} | ||
|
||
public SlackApiCallException(final String apiMethod, final String slackErrorMessage) { | ||
super(String.format("%s -> api method : %s, slack message : %S", DEFAULT_MESSAGE, apiMethod, | ||
slackErrorMessage)); | ||
public SlackApiCallException(final String apiMethod, final SlackApiTextResponse response) { | ||
super(String.format("%s -> api method : %s, slack message : %s, slack needed: %s, slack provided: %s", | ||
DEFAULT_MESSAGE, | ||
apiMethod, | ||
response.getError(), | ||
response.getNeeded(), | ||
response.getProvided() | ||
)); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
backend/src/main/java/com/pickpick/exception/workspace/WorkspaceDuplicateException.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,14 @@ | ||
package com.pickpick.exception.workspace; | ||
|
||
import com.pickpick.exception.BadRequestException; | ||
|
||
public class WorkspaceDuplicateException extends BadRequestException { | ||
|
||
private static final String ERROR_CODE = "WORKSPACE_DUPLICATE"; | ||
private static final String SERVER_MESSAGE = "이미 존재하는 워크스페이스 등록 시도"; | ||
private static final String CLIENT_MESSAGE = "이미 등록된 워크스페이스입니다."; | ||
|
||
public WorkspaceDuplicateException(final String slackId) { | ||
super(String.format("%s -> workspace slack id: %s", SERVER_MESSAGE, slackId), CLIENT_MESSAGE, ERROR_CODE); | ||
} | ||
} |
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
Oops, something went wrong.