I have an application that uses a few external libraries. These libraries use try/catch blocks to deal with errors. Rather then editing the libraries and removing the try/catch blocks is there a way to force them to bubble up to a function I control so that I can post them to my server?
here is an example
'parseBindingsString': function(bindingsString, bindingContext, node, options) {
try {
var bindingFunction = createBindingsStringEvaluatorViaCache(bindingsString, this.bindingCache, options);
return bindingFunction(bindingContext, node);
} catch (ex) {
ex.message = "Unable to parse bindings.\nBindings value: " + bindingsString + "\nMessage: " + ex.message;
throw ex;
}
}
Nope. If an Exception is thrown and catched, it won't bubble up again (unless the catch
blocks rethrows the exception).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With