Skip to content

Commit

Permalink
rename: UiState 관련 파일 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonhh committed Nov 24, 2024
1 parent 935fa9b commit ab26234
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/src/main/java/com/example/com_us/base/data/NetworkError.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.example.com_us.base.data

sealed class NetworkError : Exception(){
data class ApiError(
val statusCode : Int,
override val message : String
) : NetworkError()

data class NetworkException(
override val cause : Throwable,
) : NetworkError()

data class NullDataError(
override val message : String = "Data is null"
) : NetworkError()

}

0 comments on commit ab26234

Please sign in to comment.