Package org.ldk.enums

Enum Bolt12SemanticError

    • Enum Constant Detail

      • LDKBolt12SemanticError_AlreadyExpired

        public static final Bolt12SemanticError LDKBolt12SemanticError_AlreadyExpired
        The current [`std::time::SystemTime`] is past the offer or invoice's expiration.
      • LDKBolt12SemanticError_UnsupportedChain

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnsupportedChain
        The provided chain hash does not correspond to a supported chain.
      • LDKBolt12SemanticError_UnexpectedChain

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedChain
        A chain was provided but was not expected.
      • LDKBolt12SemanticError_MissingAmount

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingAmount
        An amount was expected but was missing.
      • LDKBolt12SemanticError_InvalidAmount

        public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidAmount
        The amount exceeded the total bitcoin supply.
      • LDKBolt12SemanticError_InsufficientAmount

        public static final Bolt12SemanticError LDKBolt12SemanticError_InsufficientAmount
        An amount was provided but was not sufficient in value.
      • LDKBolt12SemanticError_UnexpectedAmount

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedAmount
        An amount was provided but was not expected.
      • LDKBolt12SemanticError_UnsupportedCurrency

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnsupportedCurrency
        A currency was provided that is not supported.
      • LDKBolt12SemanticError_UnknownRequiredFeatures

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnknownRequiredFeatures
        A feature was required but is unknown.
      • LDKBolt12SemanticError_UnexpectedFeatures

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedFeatures
        Features were provided but were not expected.
      • LDKBolt12SemanticError_MissingDescription

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingDescription
        A required description was not provided.
      • LDKBolt12SemanticError_MissingSigningPubkey

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingSigningPubkey
        A signing pubkey was not provided.
      • LDKBolt12SemanticError_InvalidSigningPubkey

        public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidSigningPubkey
        A signing pubkey was provided but a different one was expected.
      • LDKBolt12SemanticError_UnexpectedSigningPubkey

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedSigningPubkey
        A signing pubkey was provided but was not expected.
      • LDKBolt12SemanticError_MissingQuantity

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingQuantity
        A quantity was expected but was missing.
      • LDKBolt12SemanticError_InvalidQuantity

        public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidQuantity
        An unsupported quantity was provided.
      • LDKBolt12SemanticError_UnexpectedQuantity

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedQuantity
        A quantity or quantity bounds was provided but was not expected.
      • LDKBolt12SemanticError_InvalidMetadata

        public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidMetadata
        Metadata could not be used to verify the offers message.
      • LDKBolt12SemanticError_UnexpectedMetadata

        public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedMetadata
        Metadata was provided but was not expected.
      • LDKBolt12SemanticError_MissingPayerMetadata

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPayerMetadata
        Payer metadata was expected but was missing.
      • LDKBolt12SemanticError_MissingPayerId

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPayerId
        A payer id was expected but was missing.
      • LDKBolt12SemanticError_MissingPaths

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPaths
        Blinded paths were expected but were missing.
      • LDKBolt12SemanticError_InvalidPayInfo

        public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidPayInfo
        The blinded payinfo given does not match the number of blinded path hops.
      • LDKBolt12SemanticError_MissingCreationTime

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingCreationTime
        An invoice creation time was expected but was missing.
      • LDKBolt12SemanticError_MissingPaymentHash

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPaymentHash
        An invoice payment hash was expected but was missing.
      • LDKBolt12SemanticError_MissingSignature

        public static final Bolt12SemanticError LDKBolt12SemanticError_MissingSignature
        A signature was expected but was missing.
    • Method Detail

      • values

        public static Bolt12SemanticError[] 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 (Bolt12SemanticError c : Bolt12SemanticError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Bolt12SemanticError 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