You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
527 B
20 lines
527 B
4 years ago
|
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
||
5 years ago
|
import 'package:cake_wallet/generated/i18n.dart';
|
||
|
|
||
|
class TradeNotCreatedException implements Exception {
|
||
5 years ago
|
TradeNotCreatedException(this.provider, {this.description = ''});
|
||
|
|
||
5 years ago
|
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;
|
||
|
}
|
||
|
}
|