Skip to content

Document jQuery.Deferred.exceptionHook #1246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mgol opened this issue Jul 3, 2024 · 1 comment · May be fixed by #1277
Open

Document jQuery.Deferred.exceptionHook #1246

mgol opened this issue Jul 3, 2024 · 1 comment · May be fixed by #1277

Comments

@mgol
Copy link
Member

mgol commented Jul 3, 2024

See https://jquery.com/upgrade-guide/3.0/#callback-exit, in particular the paragraph:

Note that jQuery logs a message to the console when it is inside a Deferred and a JavaScript exception occurs. These messages take the form jQuery.Deferred exception: (error message). If you do not want any console output on these exceptions, set jQuery.Deferred.exceptionHook to undefined. If you need further help in finding errors reported this way, use the jquery-deferred-reporter plugin during development to obtain stack traces.

Here's the source code of this API: https://github.com/jquery/jquery/blob/cb8ab6ccdb8a7b843301793d4b7138a5a3750d6b/src/deferred/exceptionHook.js

@mgol mgol added this to the 3.7.0 milestone Sep 9, 2024
mgol added a commit to mgol/api.jquery.com that referenced this issue Apr 15, 2025
Also, create a page for the now deprecated `jQuery.Deferred.getStackHook`.

Fixes jquerygh-1221
Fixes jquerygh-1246
mgol added a commit to mgol/api.jquery.com that referenced this issue Apr 15, 2025
Also, create a page for the now deprecated `jQuery.Deferred.getStackHook`.

Fixes jquerygh-1221
Fixes jquerygh-1246
@mgol
Copy link
Member Author

mgol commented Apr 15, 2025

PR: #1277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant