CakeWallet/lib/exchange/trade_not_created_exception.dart

13 lines
415 B
Dart
Raw Normal View History

2020-09-21 14:50:26 +03:00
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
2020-01-04 21:31:52 +02:00
import 'package:cake_wallet/generated/i18n.dart';
class TradeNotCreatedException implements Exception {
2020-01-08 14:26:34 +02:00
TradeNotCreatedException(this.provider, {this.description = ''});
2020-01-04 21:31:52 +02:00
ExchangeProviderDescription provider;
String description;
@override
String toString() => '${S.current.trade_for_not_created(provider.title)} $description';
2020-01-04 21:31:52 +02:00
}