Files
hash-wallet/lib/core/open_crypto_pay/exceptions.dart
T
c1e9668b1e CW-969-Add-DFX-s-Open-CryptoPay (#2122)
* feat: Add Open CryptoPay for sending

* bug: Fix sending Open CryptoPay for eth

* feat: add transaction dismissal

* style: remove print statements from OCP

* feat: add support for Monero over OCP

* bug: Hide "Add to Address Book" on OCP transactions

* style: revert code style in send_view_model.dart

* style: revert code style in send_view_model.dart

* feat: set failure state if it fails to create an OCP transaction

* Update lib/view_model/send/send_view_model.dart

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-04-10 04:03:06 +02:00

19 lines
473 B
Dart

class OpenCryptoPayException implements Exception {
final String message;
OpenCryptoPayException([this.message = '']);
@override
String toString() =>
'OpenCryptoPayException${message.isNotEmpty ? ': $message' : ''}';
}
class OpenCryptoPayNotSupportedException extends OpenCryptoPayException {
final String provider;
OpenCryptoPayNotSupportedException(this.provider);
@override
String get message => "$provider does not support Open CryptoPay";
}