Update java bindings with new generator and new upstream code
[ldk-java] / src / main / java / org / ldk / structs / LightningError.java
index d4138bf4fa4d3ae5921f7194dc2e9ed714ac19f2..9c82673da384f2e3612e687486a403a42d975a83 100644 (file)
@@ -5,6 +5,10 @@ import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
 
+
+/**
+ * An Err type for failure to process messages.
+ */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class LightningError extends CommonBase {
        LightningError(Object _dummy, long ptr) { super(ptr); }
@@ -14,15 +18,24 @@ public class LightningError extends CommonBase {
                if (ptr != 0) { bindings.LightningError_free(ptr); }
        }
 
+       /**
+        * A human-readable message describing the error
+        */
        public String get_err() {
                String ret = bindings.LightningError_get_err(this.ptr);
                return ret;
        }
 
+       /**
+        * A human-readable message describing the error
+        */
        public void set_err(byte[] val) {
                bindings.LightningError_set_err(this.ptr, val);
        }
 
+       /**
+        * The action which should be taken against the offending peer.
+        */
        public ErrorAction get_action() {
                long ret = bindings.LightningError_get_action(this.ptr);
                ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
@@ -30,10 +43,16 @@ public class LightningError extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * The action which should be taken against the offending peer.
+        */
        public void set_action(ErrorAction val) {
                bindings.LightningError_set_action(this.ptr, val.ptr);
        }
 
+       /**
+        * Constructs a new LightningError given each field
+        */
        public static LightningError constructor_new(byte[] err_arg, ErrorAction action_arg) {
                long ret = bindings.LightningError_new(err_arg, action_arg.ptr);
                LightningError ret_hu_conv = new LightningError(null, ret);
@@ -41,6 +60,9 @@ public class LightningError extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Creates a copy of the LightningError
+        */
        public LightningError clone() {
                long ret = bindings.LightningError_clone(this.ptr);
                LightningError ret_hu_conv = new LightningError(null, ret);