lightning-terminal/accounts/errors.go
Elle Mouton 4d8d4e1fa3
accounts: use UpsertAccountPayment in removePayment
Instead of UpdateAccount.
2025-01-21 12:20:33 +02:00

24 lines
845 B
Go

package accounts
import "errors"
var (
// ErrLabelAlreadyExists is returned by the CreateAccount method if the
// account label is already used by an existing account.
ErrLabelAlreadyExists = errors.New(
"account label uniqueness constraint violation",
)
// ErrAlreadySucceeded is returned by the UpsertAccountPayment method
// if the WithErrAlreadySucceeded option is used and the payment has
// already succeeded.
ErrAlreadySucceeded = errors.New("payment has already succeeded")
// ErrPaymentNotAssociated indicate that the payment with the given hash
// has not yet been associated with the account in question. It is also
// returned when the WithErrIfUnknown option is used with
// UpsertAccountPayment if the payment is not yet known.
ErrPaymentNotAssociated = errors.New(
"payment not associated with account",
)
)