mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-09-30 02:11:23 +00:00
21 lines
589 B
Dart
21 lines
589 B
Dart
|
import 'package:cake_wallet/src/domain/exchange/exchange_provider_description.dart';
|
||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||
|
|
||
|
class TradeNotFoundException implements Exception {
|
||
|
String tradeId;
|
||
|
ExchangeProviderDescription provider;
|
||
|
String description;
|
||
|
|
||
|
TradeNotFoundException(this.tradeId, {this.provider, this.description = ''});
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
var text = tradeId != null && provider != null
|
||
|
? S.current.trade_id_not_found(tradeId, provider.title)
|
||
|
: S.current.trade_not_found;
|
||
|
text += ' $description';
|
||
|
|
||
|
return text;
|
||
|
}
|
||
|
}
|