mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
* fix: improve error handling and messaging in DFX Buy and OpenCryptoPay services * fix: adjust error handling in DFX Buy provider by updating `_getErrorMessage` function parameters and removing unused imports
18 lines
457 B
Dart
18 lines
457 B
Dart
class OpenCryptoPayException implements Exception {
|
|
final String message;
|
|
|
|
OpenCryptoPayException([this.message = '']);
|
|
|
|
@override
|
|
String toString() => message.isNotEmpty ? message : 'OpenCryptoPayException';
|
|
}
|
|
|
|
class OpenCryptoPayNotSupportedException extends OpenCryptoPayException {
|
|
final String provider;
|
|
|
|
OpenCryptoPayNotSupportedException(this.provider);
|
|
|
|
@override
|
|
String get message => "$provider does not support Open CryptoPay";
|
|
}
|