| 1 | import 'package:cake_wallet/exchange/exchange_provider_description.dart'; |
| 2 | import 'package:cake_wallet/generated/i18n.dart'; |
| 3 | |
| 4 | class TradeNotFoundException implements Exception { |
| 5 | TradeNotFoundException(this.tradeId, {required this.provider, this.description = ''}); |
| 6 | |
| 7 | String tradeId; |
| 8 | ExchangeProviderDescription provider; |
| 9 | String description; |
| 10 | |
| 11 | @override |
| 12 | String toString() => '${S.current.trade_id_not_found(tradeId, provider.title)} $description'; |
| 13 | } |