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