YouTip LogoYouTip

Misc Jquery Readyexception

# jQuery jQuery.readyException() Method [![Image 3: jQuery Misc Methods](#)jQuery Misc Methods](#) ## Example Pass the received error to console.error jQuery.readyException = function(error){console.error(error); }; * * * ## Definition and Usage The $.readyException() function handles errors thrown synchronously by functions wrapped in jQuery(). **Note:** 1. This method is triggered when a function wrapped in jQuery() or jQuery( document ).ready(), or an equivalent function, throws an error synchronously. By default, it throws the error after a timeout so that it is logged in the console and passed to window.onerror. * * * ## Syntax _$_.readyException( error ) | Parameter | Description | | :--- | :--- | | _error_ | Error type An error thrown by a function wrapped in jQuery() | * * jQuery Misc Methods](#)
← Angularjs2 User InputMisc Jquery Sub β†’