jerni
a framework to build data-driven products from the ground up

module: jerni/skip

SKIP symbol to explicitly ignore an exception during projection stage

Summary

type: SkipSymbol

Usages

// SKIP symbol to explicitly ignore an exception during projection stage
const SKIP = require("jerni/skip");
const journey = createJourney({
writeTo: 'http://some-server.com',
stores: [/* ... */],
async onError(err, event) {
// we don't need to handle error for this event because …
if (event.type === "SOME_EVENT") {
return SKIP;
}
}
});