-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issues #287 chore: db Result 를 CustomException 으로 처리하게 변경
- Loading branch information
Showing
19 changed files
with
59 additions
and
37 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...house/database/converter/RectConverter.kt → .../data/database/converter/RectConverter.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
2 changes: 1 addition & 1 deletion
2
...thouse/database/converter/UriConverter.kt → ...e/data/database/converter/UriConverter.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
3 changes: 3 additions & 0 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/DBDeleteException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.data.database.exception | ||
|
||
class DBDeleteException(message: String = "데이터 Delete 에 실패 했습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/DBInsertException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.data.database.exception | ||
|
||
class DBInsertException(message: String = "데이터 Insert 에 실패 했습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
...data-database/src/main/java/com/lighthouse/data/database/exception/DBNotFoundException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.data.database.exception | ||
|
||
class DBNotFoundException(message: String = "데이터를 찾을 수 없습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/DBSelectException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.data.database.exception | ||
|
||
class DBSelectException(message: String = "데이터 Select 에 실패 했습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/DBUpdateException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.data.database.exception | ||
|
||
class DBUpdateException(message: String = "데이터 Update 에 실패 했습니다.") : Exception(message) |
3 changes: 0 additions & 3 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/DeleteException.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/InsertException.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/NotFoundException.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/SelectException.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
data/data-database/src/main/java/com/lighthouse/data/database/exception/UpdateException.kt
This file was deleted.
Oops, something went wrong.
35 changes: 20 additions & 15 deletions
35
data/data-database/src/main/java/com/lighthouse/data/database/ext/KotlinExt.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
7 changes: 7 additions & 0 deletions
7
...atabase/src/main/java/com/lighthouse/data/database/mapper/brand/CombineSectionIdMapper.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.lighthouse.data.database.mapper.brand | ||
|
||
import com.lighthouse.beep.model.location.Dms | ||
|
||
internal fun combineSectionId(x: Dms, y: Dms, brandName: String): String { | ||
return "${x.dmsToString()}_${y.dmsToString()}_${brandName.lowercase()}" | ||
} |
3 changes: 3 additions & 0 deletions
3
model/src/main/java/com/lighthouse/beep/model/exception/db/InsertException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.beep.model.exception.db | ||
|
||
class InsertException(message: String? = "데이터 Insert 에 실패 했습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
model/src/main/java/com/lighthouse/beep/model/exception/db/NotFoundException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.beep.model.exception.db | ||
|
||
class NotFoundException(message: String? = "데이터를 찾을 수 없습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
model/src/main/java/com/lighthouse/beep/model/exception/db/SelectException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.beep.model.exception.db | ||
|
||
class SelectException(message: String? = "데이터 Select 에 실패 했습니다.") : Exception(message) |
3 changes: 3 additions & 0 deletions
3
model/src/main/java/com/lighthouse/beep/model/exception/db/UpdateException.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.lighthouse.beep.model.exception.db | ||
|
||
class UpdateException(message: String? = "데이터 Update 에 실패 했습니다.") : Exception(message) |
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