mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 21:19:37 +00:00
9e4a7f4331
* Enhance bitcoin error message * fix: unconfirmed spends, spend confirmed first, wrong balance exception * Minor fixes --------- Co-authored-by: Rafael Saes <git@rafael.saes.dev>
29 lines
1.2 KiB
Dart
29 lines
1.2 KiB
Dart
import 'package:cw_core/crypto_currency.dart';
|
|
import 'package:cw_core/exceptions.dart';
|
|
|
|
class BitcoinTransactionWrongBalanceException extends TransactionWrongBalanceException {
|
|
BitcoinTransactionWrongBalanceException() : super(CryptoCurrency.btc);
|
|
}
|
|
|
|
class BitcoinTransactionNoInputsException extends TransactionNoInputsException {}
|
|
|
|
class BitcoinTransactionNoFeeException extends TransactionNoFeeException {}
|
|
|
|
class BitcoinTransactionNoDustException extends TransactionNoDustException {}
|
|
|
|
class BitcoinTransactionNoDustOnChangeException extends TransactionNoDustOnChangeException {
|
|
BitcoinTransactionNoDustOnChangeException(super.max, super.min);
|
|
}
|
|
|
|
class BitcoinTransactionCommitFailed extends TransactionCommitFailed {
|
|
BitcoinTransactionCommitFailed({super.errorMessage});
|
|
}
|
|
|
|
class BitcoinTransactionCommitFailedDustChange extends TransactionCommitFailedDustChange {}
|
|
|
|
class BitcoinTransactionCommitFailedDustOutput extends TransactionCommitFailedDustOutput {}
|
|
|
|
class BitcoinTransactionCommitFailedDustOutputSendAll
|
|
extends TransactionCommitFailedDustOutputSendAll {}
|
|
|
|
class BitcoinTransactionCommitFailedVoutNegative extends TransactionCommitFailedVoutNegative {}
|