Easy Tutorial
❮ Jq Sel Class Sel Attribute Notequal Value ❯

jQuery jQuery.readyException() Method

jQuery Miscellaneous Methods

Example

Pass the received error to console.error

jQuery.readyException = function( error ) {
    console.error( error );
};

Definition and Usage

The $.readyException() function handles errors synchronously thrown by functions wrapped in jQuery().

Note: 1. This method is triggered when an error is synchronously thrown by a function wrapped in jQuery() or jQuery( document ).ready(), or equivalent functions. By default, it throws an error on timeout so that it is logged in the console and passed to window.onerror.


Syntax

Parameter Description
error Error type An error thrown by a function wrapped in jQuery()

jQuery Miscellaneous Methods

❮ Jq Sel Class Sel Attribute Notequal Value ❯