+
+ /**
+ * Utility method to constructs a new DisconnectPeer-variant ErrorAction
+ */
+ public static ErrorAction disconnect_peer(ErrorMessage msg) {
+ long ret = bindings.ErrorAction_disconnect_peer(msg == null ? 0 : msg.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new IgnoreError-variant ErrorAction
+ */
+ public static ErrorAction ignore_error() {
+ long ret = bindings.ErrorAction_ignore_error();
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new IgnoreAndLog-variant ErrorAction
+ */
+ public static ErrorAction ignore_and_log(org.ldk.enums.Level a) {
+ long ret = bindings.ErrorAction_ignore_and_log(a);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new SendErrorMessage-variant ErrorAction
+ */
+ public static ErrorAction send_error_message(ErrorMessage msg) {
+ long ret = bindings.ErrorAction_send_error_message(msg == null ? 0 : msg.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+