cake_wallet/lib/exchange/trade_not_created_exeption.dart
2020-09-21 14:50:26 +03:00

19 lines
527 B
Dart

import 'package:cake_wallet/exchange/exchange_provider_description.dart';
import 'package:cake_wallet/generated/i18n.dart';
class TradeNotCreatedException implements Exception {
TradeNotCreatedException(this.provider, {this.description = ''});
ExchangeProviderDescription provider;
String description;
@override
String toString() {
var text = provider != null
? S.current.trade_for_not_created(provider.title)
: S.current.trade_not_created;
text += ' $description';
return text;
}
}