pulse-on-error

xod/core/pulse-on-error

Fires a pulse when the upstream node enters the error state.
pulse-on-error
@/pulse-on-error
Fires a pulse when the upstream node enters the error state.
INgeneric t1
pulse-on-error
IN
OUT
OUTpulse

C++ implementation

#pragma XOD error_catch enable

node {
    void evaluate(Context ctx) {
        if (getError<input_IN>(ctx)) {
            emitValue<output_OUT>(ctx, 1);
        }
    }
}