+ /**
+ * Utility method to constructs a new APIMisuseError-variant APIError
+ */
+ public static APIError apimisuse_error(java.lang.String err) {
+ long ret = bindings.APIError_apimisuse_error(err);
+ if (ret < 1024) { return null; }
+ APIError ret_hu_conv = APIError.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new FeeRateTooHigh-variant APIError
+ */
+ public static APIError fee_rate_too_high(java.lang.String err, int feerate) {
+ long ret = bindings.APIError_fee_rate_too_high(err, feerate);
+ if (ret < 1024) { return null; }
+ APIError ret_hu_conv = APIError.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new RouteError-variant APIError
+ */
+ public static APIError route_error(java.lang.String err) {
+ long ret = bindings.APIError_route_error(err);
+ if (ret < 1024) { return null; }
+ APIError ret_hu_conv = APIError.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new ChannelUnavailable-variant APIError
+ */
+ public static APIError channel_unavailable(java.lang.String err) {
+ long ret = bindings.APIError_channel_unavailable(err);
+ if (ret < 1024) { return null; }
+ APIError ret_hu_conv = APIError.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new MonitorUpdateFailed-variant APIError
+ */
+ public static APIError monitor_update_failed() {
+ long ret = bindings.APIError_monitor_update_failed();
+ if (ret < 1024) { return null; }
+ APIError ret_hu_conv = APIError.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+