2020-09-21 11:50:26 +00:00
|
|
|
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
2020-01-04 19:31:52 +00:00
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
|
|
|
|
|
|
|
class TradeNotCreatedException implements Exception {
|
2020-01-08 12:26:34 +00:00
|
|
|
TradeNotCreatedException(this.provider, {this.description = ''});
|
|
|
|
|
2020-01-04 19:31:52 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|