+ /**
+ * Creates an [`InvoiceError`] with the given message.
+ */
+ public static InvoiceError from_string(string s) {
+ long ret = bindings.InvoiceError_from_string(InternalUtils.encodeString(s));
+ GC.KeepAlive(s);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.InvoiceError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceError(null, ret); }
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
+ return ret_hu_conv;
+ }
+