- if (raw_val instanceof bindings.LDKErrorAction_IgnoreError) {
- return new ErrorAction_IgnoreError(ptr, raw_val);
- }
- if (raw_val instanceof bindings.LDKErrorAction_IgnoreAndLog) {
- return new ErrorAction_IgnoreAndLog(ptr, raw_val);
- }
- if (raw_val instanceof bindings.LDKErrorAction_IgnoreDuplicateGossip) {
- return new ErrorAction_IgnoreDuplicateGossip(ptr, raw_val);
- }
- if (raw_val instanceof bindings.LDKErrorAction_SendErrorMessage) {
- return new ErrorAction_SendErrorMessage(ptr, raw_val);
- }
- throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface