Linked Questions

13 votes
2 answers
14k views

jQuery: global exception handler [duplicate]

Possible Duplicate: JavaScript Exception Handling I have a web application where 100% of the javascript code executes as jQuery event handlers (I guess most jQuery apps are like this). The ...
flybywire's user avatar
  • 276k
157 votes
5 answers
119k views

Catching all javascript unhandled exceptions

I'm trying to find or figure out a way to display in an alert box all of the unhandled javascript exceptions in an application. I'd want all of this to be done on the client side, without using any ...
jre247's user avatar
  • 1,897
0 votes
2 answers
4k views

global javascript error handling

Is there any way to catch Javascript errors globally across the web application by writing some code in the master page?
user avatar
2 votes
2 answers
4k views

Ignore JS Uncaught exceptions in browser

Is there a way to tell a browser, Opera or Chrome for example, not to stop scripts execution if it encounters an unhandled exception? I just need to test some JS scripts in browser but the page also ...
Ilya I's user avatar
  • 1,282
4 votes
3 answers
3k views

How can I know if a Javascript exception occurred in a PhoneGap application? (Android)

How can I know if a Javascript exception occurred in a PhoneGap application? I'm using HTC Desire Z and Android 2.2. I don't see anything in logcat and jsconsole.com does not seem to support ...
esamatti's user avatar
  • 19.1k
6 votes
1 answer
2k views

Robust Javascript Exception Handling

I am developing a DHTML/Javascript application which relies on some advanced features (DOM manipulation, AJAX, Flash communication, and more). I'm very concerned about functionality -- if problems ...
Josh's user avatar
  • 11.1k
5 votes
1 answer
1k views

ajaxStop event stop firing after runtime error in any ajax callback

Lets look at my code: $("#senderr").on("click", function(){ $.get("/echo/json").then(function(res){ //let's imagine something happen throw "error"; }); }); $("#sendok").on("click", ...
huston007's user avatar
  • 2,000
2 votes
2 answers
903 views

JQuery error property for error handler

I'm just playing around for the first time with jQuery's ajax functionality. I wanted to add a function that could handle any errors. So, in one of my client javascript blocks, I added the following ...
eidylon's user avatar
  • 7,268
1 vote
2 answers
588 views

Implementing exception handling in JavaScript

I would like to know the best and easiest way to implement exception handling in Javascript. I'm looking for a "one point" solution. I've got lot of functions and wouldn't want to go around and ...
derin's user avatar
  • 11
-1 votes
1 answer
514 views

Jquery get browser console log

It is possible to get with JQuery the browser console log. I want to save it like error log to view user actions if have errors.. I try some solutions finded in search engines but does not have ...
Стефан Симеонов's user avatar
2 votes
1 answer
482 views

Is it possible to surround all my javascript file with one try catch?

I wrote a bookmarklet, when the user will click on it in his browser it will do some actions on the current website and show some results in a popup. In some websites my bookmarklet fails to load ...
Amr Elgarhy's user avatar
  • 69.2k
0 votes
1 answer
103 views

Error handling error based on error code in node.js

I created a command line app in node.js which heavily relies on file system module of node (read, update, create new file etc). I write many functions for the same purpose. Now my question is : 'Can ...
manish's user avatar
  • 996
0 votes
1 answer
115 views

How to indicate that an exception was thrown from inside method in JasmineJS?

In Junit testing I can expect an exception to be thrown in the test like this : @Test(expect=SomeExceptino.class) public void shouldThrowException(){ //test goes here. } How can I do this with JS ...
Adelin's user avatar
  • 19.2k