Class ErroneousField


  • public class ErroneousField
    extends Object
    The field in the [`InvoiceRequest`] or the [`Bolt12Invoice`] that contained an error. [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
    • Method Detail

      • get_tlv_fieldnum

        public long get_tlv_fieldnum()
        The type number of the TLV field containing the error.
      • set_tlv_fieldnum

        public void set_tlv_fieldnum​(long val)
        The type number of the TLV field containing the error.
      • get_suggested_value

        public Option_CVec_u8ZZ get_suggested_value()
        A value to use for the TLV field to avoid the error. Returns a copy of the field.
      • set_suggested_value

        public void set_suggested_value​(Option_CVec_u8ZZ val)
        A value to use for the TLV field to avoid the error.
      • of

        public static ErroneousField of​(long tlv_fieldnum_arg,
                                        Option_CVec_u8ZZ suggested_value_arg)
        Constructs a new ErroneousField given each field