Updated on 2026-08-14
This commit is contained in:
commit
c618132eac
7 changed files with 46 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue