Ignores errors of that operation.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
throw "This is an error!";
}).ignoreErrors();
// nothing happens
b.start();
b.ignoreErrors(false);
// will throw error
b.start();