Files
breez-sdk-liquid/packages/dart/lib/src/error.dart
Ross Savage deb9ed1b09 Add description hash to receive payment (#440)
* Add option to hash description

* Fix Flutter gen

* Switch to upstream boltz-rust

* Address feedback
2024-08-29 08:17:10 +02:00

72 lines
2.8 KiB
Dart

// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.2.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import 'frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
part 'error.freezed.dart';
@freezed
sealed class PaymentError with _$PaymentError implements FrbException {
const PaymentError._();
const factory PaymentError.alreadyClaimed() = PaymentError_AlreadyClaimed;
const factory PaymentError.alreadyPaid() = PaymentError_AlreadyPaid;
const factory PaymentError.paymentInProgress() = PaymentError_PaymentInProgress;
const factory PaymentError.amountOutOfRange() = PaymentError_AmountOutOfRange;
const factory PaymentError.amountMissing({
required String err,
}) = PaymentError_AmountMissing;
const factory PaymentError.invalidNetwork({
required String err,
}) = PaymentError_InvalidNetwork;
const factory PaymentError.generic({
required String err,
}) = PaymentError_Generic;
const factory PaymentError.invalidOrExpiredFees() = PaymentError_InvalidOrExpiredFees;
const factory PaymentError.insufficientFunds() = PaymentError_InsufficientFunds;
const factory PaymentError.invalidDescription({
required String err,
}) = PaymentError_InvalidDescription;
const factory PaymentError.invalidInvoice({
required String err,
}) = PaymentError_InvalidInvoice;
const factory PaymentError.invalidPreimage() = PaymentError_InvalidPreimage;
const factory PaymentError.lwkError({
required String err,
}) = PaymentError_LwkError;
const factory PaymentError.pairsNotFound() = PaymentError_PairsNotFound;
const factory PaymentError.paymentTimeout() = PaymentError_PaymentTimeout;
const factory PaymentError.persistError() = PaymentError_PersistError;
const factory PaymentError.receiveError({
required String err,
}) = PaymentError_ReceiveError;
const factory PaymentError.refunded({
required String err,
required String refundTxId,
}) = PaymentError_Refunded;
const factory PaymentError.selfTransferNotSupported() = PaymentError_SelfTransferNotSupported;
const factory PaymentError.sendError({
required String err,
}) = PaymentError_SendError;
const factory PaymentError.signerError({
required String err,
}) = PaymentError_SignerError;
}
@freezed
sealed class SdkError with _$SdkError implements FrbException {
const SdkError._();
const factory SdkError.alreadyStarted() = SdkError_AlreadyStarted;
const factory SdkError.generic({
required String err,
}) = SdkError_Generic;
const factory SdkError.notStarted() = SdkError_NotStarted;
const factory SdkError.serviceConnectivity({
required String err,
}) = SdkError_ServiceConnectivity;
}