parent
6e6cf05d11
commit
131ebabe85
14 changed files with 344 additions and 142 deletions
|
|
@ -40,3 +40,5 @@ fun Throwable.getErrorString(context: Context): String = getServerErrorMessage()
|
|||
is IOException -> context.getString(R.string.error_network)
|
||||
else -> context.getString(R.string.error_generic)
|
||||
}
|
||||
|
||||
fun Throwable.isHttpNotFound(): Boolean = (this as? HttpException)?.code() == 404
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue