Package org.ldk.enums

Enum RetryableSendFailure

  • All Implemented Interfaces:
    Serializable, Comparable<RetryableSendFailure>

    public enum RetryableSendFailure
    extends Enum<RetryableSendFailure>
    Indicates an immediate error on [`ChannelManager::send_payment`]. Further errors may be surfaced later via [`Event::PaymentPathFailed`] and [`Event::PaymentFailed`]. [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment [`Event::PaymentPathFailed`]: crate::events::Event::PaymentPathFailed [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
    • Enum Constant Detail

      • LDKRetryableSendFailure_PaymentExpired

        public static final RetryableSendFailure LDKRetryableSendFailure_PaymentExpired
        The provided [`PaymentParameters::expiry_time`] indicated that the payment has expired. Note that this error is *not* caused by [`Retry::Timeout`]. [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
      • LDKRetryableSendFailure_RouteNotFound

        public static final RetryableSendFailure LDKRetryableSendFailure_RouteNotFound
        We were unable to find a route to the destination.
      • LDKRetryableSendFailure_DuplicatePayment

        public static final RetryableSendFailure LDKRetryableSendFailure_DuplicatePayment
        Indicates that a payment for the provided [`PaymentId`] is already in-flight and has not yet completed (i.e. generated an [`Event::PaymentSent`] or [`Event::PaymentFailed`]). [`PaymentId`]: crate::ln::channelmanager::PaymentId [`Event::PaymentSent`]: crate::events::Event::PaymentSent [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
    • Method Detail

      • values

        public static RetryableSendFailure[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RetryableSendFailure c : RetryableSendFailure.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RetryableSendFailure valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null