2024-03-29 18:51:34 +00:00
|
|
|
import 'package:cw_core/crypto_currency.dart';
|
|
|
|
|
|
|
|
class TransactionWrongBalanceException implements Exception {
|
2024-04-17 19:35:11 +00:00
|
|
|
TransactionWrongBalanceException(this.currency, {this.amount});
|
2024-03-29 18:51:34 +00:00
|
|
|
|
|
|
|
final CryptoCurrency currency;
|
2024-04-17 19:35:11 +00:00
|
|
|
final int? amount;
|
2024-03-29 18:51:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class TransactionNoInputsException implements Exception {}
|
|
|
|
|
|
|
|
class TransactionNoFeeException implements Exception {}
|
|
|
|
|
|
|
|
class TransactionNoDustException implements Exception {}
|
|
|
|
|
|
|
|
class TransactionNoDustOnChangeException implements Exception {
|
|
|
|
TransactionNoDustOnChangeException(this.max, this.min);
|
|
|
|
|
|
|
|
final String max;
|
|
|
|
final String min;
|
|
|
|
}
|
|
|
|
|
2024-04-26 19:29:31 +00:00
|
|
|
class TransactionCommitFailed implements Exception {
|
|
|
|
final String? errorMessage;
|
|
|
|
|
|
|
|
TransactionCommitFailed({this.errorMessage});
|
|
|
|
}
|
2024-03-29 18:51:34 +00:00
|
|
|
|
|
|
|
class TransactionCommitFailedDustChange implements Exception {}
|
|
|
|
|
|
|
|
class TransactionCommitFailedDustOutput implements Exception {}
|
|
|
|
|
|
|
|
class TransactionCommitFailedDustOutputSendAll implements Exception {}
|
|
|
|
|
|
|
|
class TransactionCommitFailedVoutNegative implements Exception {}
|
2024-04-17 19:35:11 +00:00
|
|
|
|
|
|
|
class TransactionCommitFailedBIP68Final implements Exception {}
|
|
|
|
|
|
|
|
class TransactionInputNotSupported implements Exception {}
|