Files
Konstantin UllrichandGitHub bac14e2d25 fix: improve error handling and messaging in DFX Buy and OpenCryptoPay services (#2509)
* 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
2025-09-08 18:22:34 +03:00

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";
}