Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-24 17:18:44 +03:00
commit c618132eac
7 changed files with 46 additions and 7 deletions

View file

@ -18,6 +18,19 @@ sealed class SendTransactionError {
data class UnknownError(val ex: Exception? = null) : SendTransactionError()
fun getAnalyticsDescription(): String {
return when (this) {
is DemoCardError -> "DemoCardError"
is DataError -> "DataError"
is NetworkError -> "NetworkError: $code"
is BlockchainSdkError -> "BlockchainSdkError: $code"
is UserCancelledError -> "UserCancelledError"
is CreateAccountUnderfunded -> "CreateAccountUnderfunded"
is TangemSdkError -> "TangemSdkError: code $code"
is UnknownError -> "UnknownError"
}
}
companion object {
const val USER_CANCELLED_ERROR_CODE = 50002
}