- ErrorMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new ErrorMessage(null, msg); }
- msg_hu_conv.ptrs_to.add(this);
+ org.ldk.structs.ErrorMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ErrorMessage(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.add(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /**
+ * The peer did something incorrect. Tell them without closing any channels.
+ */
+ public final static class SendWarningMessage extends ErrorAction {
+ /**
+ * The message to send.
+ */
+ public final org.ldk.structs.WarningMessage msg;
+ /**
+ * The peer may have done something harmless that we weren't able to meaningfully process,
+ * though we should still tell them about it.
+ * If this event is logged, log it at the given level.
+ */
+ public final org.ldk.enums.Level log_level;
+ private SendWarningMessage(long ptr, bindings.LDKErrorAction.SendWarningMessage obj) {
+ super(null, ptr);
+ long msg = obj.msg;
+ org.ldk.structs.WarningMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.WarningMessage(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.add(this); };