-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
412 additions
and
188 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
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
28 changes: 13 additions & 15 deletions
28
domain/src/main/java/com/depromeet/threedays/domain/exception/ThreeDaysException.kt
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,17 +1,15 @@ | ||
package com.depromeet.threedays.domain.exception | ||
|
||
class ThreeDaysException(override val message: String, throwable: Throwable) : Exception(message, throwable) { | ||
// override val message: String? = when(code) { | ||
// HABIT_CONSTRAINTS_INSUFFICIENT_DAY_OF_WEEKS -> "์ค์ฒ ์์ผ์ 3๊ฐ ์ด์ ์ ํํด ์ฃผ์ธ์." | ||
// HABIT_ACHIEVEMENT_CONSTRAINTS_DATE_IS_IN_THE_PAST -> "์ด์ ์ ๊ธฐ๋ก์ ๋ณ๊ฒฝํ ์ ์์ด์." | ||
// HABIT_ACHIEVEMENT_CONSTRAINTS_INVALID_ACHIEVEMENT_DATE -> "์ต๊ด ์ทจ์๋ ์ค๋๋ง ํ ์ ์์ด์" | ||
// HABIT_CONSTRAINTS_INSUFFICIENT_NOTIFICATION -> "Push ์๋ฆผ์ ๋ง์ ์ค์ ํด ์ฃผ์ธ์." | ||
// MEMBER_CONSTRAINTS_INVALID_MEMBER -> "๊ฐ์ ๋ ๊ธฐ๋ก์ด ์์ด์." | ||
// MEMBER_NOT_FOUND -> "๊ฐ์ ๋ ๊ธฐ๋ก์ด ์์ด์." | ||
// SOCIAL_LOGIN_ERROR -> "๋ก๊ทธ์ธ์ ์คํจํ์ด์." | ||
// MATE_CONSTRAINTS_ALREADY_EXIST_MATE -> "์ด๋ฏธ ํจ๊ปํ๊ณ ์๋ ์ง๊ฟ์ด ์์ด์." | ||
// METHOD_ARGUMENT_NOT_VALID_EXCEPTION_BIND_EXCEPTION, BAD_REQUEST, UNKNOWN_ERROR -> "์ ์ ์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ด์." | ||
// NO_INTERNET_CONNECTION -> "์ธํฐ๋ท ์ฐ๊ฒฐ์ด ๋๊ฒผ์ต๋๋ค." | ||
// else -> null | ||
// } | ||
} | ||
class ThreeDaysException(override var message: String?, throwable: Throwable) : Exception(message, throwable) { | ||
var defaultMessage = UNKNOWN_EXCEPTION | ||
companion object { | ||
const val UNKNOWN_EXCEPTION = "์ ์ ์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ด์." | ||
const val INTERNET_CONNECTION_WAS_LOST = "์ธํฐ๋ท ์ฐ๊ฒฐ์ด ๋๊ฒผ์ต๋๋ค." | ||
const val NO_BODY_RESPONSE = "์๋ต์ด ๋น์์ต๋๋ค." | ||
const val NO_ERROR_BODY_RESPONSE = "์๋ฌ ์๋ต์ด ๋น์์ต๋๋ค." | ||
const val NO_ERROR_MESSAGE_RESPONSE = "์๋ฌ ๋ฉ์ธ์ง๊ฐ ๋น์์ต๋๋ค." | ||
const val LOGIN_FAIL = "๋ก๊ทธ์ธ์ ์คํจํ์์ต๋๋ค. ์ ์ ํ ๋ค์ ์๋ํด์ฃผ์ธ์." | ||
const val LOGOUT_FAIL = "๋ก๊ทธ์์์ ์คํจํ์ต๋๋ค. ์ ์ ํ ๋ค์ ์๋ํด์ฃผ์ธ์." | ||
const val MEMBERSHIP_WITHDRAWAL_FAIL = "ํ์ํํด๋ฅผ ์คํจํ์ต๋๋ค. ์ ์ ํ ๋ค์ ์๋ํด์ฃผ์ธ์." | ||
} | ||
} |
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.