divyanshunegi
07/06/2021, 10:21 AMAPIClient.GETRequest<UserData, Error>("/kmm-test", { success ->
Log.i(TAG, "Success: ${it.toString()}")
}, { error ->
Log.e(TAG, "Error: ${it.cause}")
}, { genericError ->
Log.e(TAG, "Throwable: ${it.message}")
})
it looks something like this.
I am handeling the generic error with ktor client engine.
but the error from API is still a mystery to me, can someone guide me to a good direction ?Aleksei Tirman [JB]
07/06/2021, 10:26 AMdivyanshunegi
07/07/2021, 5:06 PM