Misc Jquery Readyexception
# jQuery jQuery.readyException() Method
[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](#)
YouTip