+ /**
+ * The peer did something incorrect. Tell them without closing any channels and disconnect them.
+ */
+ public final static class DisconnectPeerWithWarning extends ErrorAction {
+ /**
+ * A warning message which we should make an effort to send before we disconnect.
+ */
+ public final org.ldk.structs.WarningMessage msg;
+ private DisconnectPeerWithWarning(long ptr, bindings.LDKErrorAction.DisconnectPeerWithWarning 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); };
+ this.msg = msg_hu_conv;
+ }
+ }