visible and hidden bindings text binding html binding class and css bindings style binding attr binding foreach binding if and ifnot bindings with and using bindings let binding component binding click binding event binding submit binding enable and disable bindings value binding textInput binding hasFocus binding checked binding options binding selectedOptions binding uniqueName binding component binding fn to add custom functions Note: This documentation applies to Knockout 3.4.0 and later.
Knockout wraps internal asynchronous calls and looks for an optional ko.onError callback to execute, if an exception is encountered, before throwing the original error. This gives you the opportunity to run custom logic, such as passing the error to a logging module. Additionally, since the original call is wrapped in a try/catch, the error passed to ko.onError contains a stack property, which is not true in many browsers when handling errors using window.onerror.
This functionality applies to errors in the following contexts:
textInput and value bindingko.utils.registerEventHandler including those bound by the event and click bindingsko.onError = function(error) {
myLogger("knockout error", error);
};