kopia lustrzana https://github.com/ryukoposting/Signal-Android
8 wiersze
522 B
Kotlin
8 wiersze
522 B
Kotlin
package org.signal.donations
|
|
|
|
sealed class StripeError(message: String) : Exception(message) {
|
|
object FailedToParsePaymentMethodResponseError : StripeError("Failed to parse payment method response")
|
|
object FailedToCreatePaymentSourceFromCardData : StripeError("Failed to create payment source from card data")
|
|
class PostError(val statusCode: Int, val errorCode: String?, val declineCode: StripeDeclineCode?) : StripeError("postForm failed with code: $statusCode. errorCode: $errorCode. declineCode: $declineCode")
|
|
}
|