Update auto-generated bindings to LDK v0.0.99
[ldk-java] / ts / structs / ErrorAction.ts
index 25bf0917d9c2ca34b92e7db45c14cb5fc43bf485..09faa34988853bad391a26021c1b6f9cabb05a4a 100644 (file)
@@ -16,6 +16,9 @@ export default class ErrorAction extends CommonBase {
                if (raw_val instanceof bindings.LDKErrorAction.IgnoreError) {
                        return new IgnoreError(this.ptr, raw_val);
                }
+               if (raw_val instanceof bindings.LDKErrorAction.IgnoreAndLog) {
+                       return new IgnoreAndLog(this.ptr, raw_val);
+               }
                if (raw_val instanceof bindings.LDKErrorAction.SendErrorMessage) {
                        return new SendErrorMessage(this.ptr, raw_val);
                }
@@ -38,6 +41,13 @@ export class IgnoreError extends ErrorAction {
                super(null, ptr);
        }
 }
+export class IgnoreAndLog extends ErrorAction {
+       public ignore_and_log: Level;
+       private constructor(ptr: number, obj: bindings.LDKErrorAction.IgnoreAndLog) {
+               super(null, ptr);
+               this.ignore_and_log = obj.ignore_and_log;
+       }
+}
 export class SendErrorMessage extends ErrorAction {
        public msg: ErrorMessage;
        private constructor(ptr: number, obj: bindings.LDKErrorAction.SendErrorMessage) {