mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
20 lines
527 B
Dart
20 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;
|
|
}
|
|
}
|