generated from LeoAndo/AndroidAppTemplate
-
-
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.
Merge pull request #21 from LeoAndo/main
Main-> develop
- Loading branch information
Showing
9 changed files
with
26 additions
and
44 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
12 changes: 12 additions & 0 deletions
12
domain/src/main/java/com/leoleo/androidapptemplate/domain/exception/ApiException.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,12 @@ | ||
package com.leoleo.androidapptemplate.domain.exception | ||
|
||
sealed class ApiException : AppException() { | ||
data class UnAuthorized(override val message: String?) : ApiException() | ||
data class Forbidden(override val message: String?) : ApiException() | ||
object Network : ApiException() | ||
data class UnprocessableEntity(override val message: String?) : ApiException() | ||
data class Unknown(override val message: String?) : ApiException() | ||
data class NotFound(override val message: String?) : ApiException() | ||
object Redirect : ApiException() | ||
object Server : ApiException() | ||
} |
12 changes: 0 additions & 12 deletions
12
domain/src/main/java/com/leoleo/androidapptemplate/domain/exception/AppErrorType.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
domain/src/main/java/com/leoleo/androidapptemplate/domain/exception/AppException.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.leoleo.androidapptemplate.domain.exception | ||
|
||
open class AppException : Exception() |
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