mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
19 lines
527 B
Dart
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;
|
|
}
|
|
}
|