Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / APIError.java
index fdcfc09b7bb4b43601b9794f8890442439544434..37478865b4cb00d99211ee72953e2dec91d2da29 100644 (file)
@@ -5,6 +5,11 @@ import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
 
+
+/**
+ * Indicates an error on the client's part (usually some variant of attempting to use too-low or
+ * too-high values)
+ */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class APIError extends CommonBase {
        private APIError(Object _dummy, long ptr) { super(ptr); }
@@ -68,4 +73,14 @@ public class APIError extends CommonBase {
                        super(null, ptr);
                }
        }
+       /**
+        * Creates a copy of the APIError
+        */
+       public APIError clone() {
+               long ret = bindings.APIError_clone(this.ptr);
+               APIError ret_hu_conv = APIError.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }