i consider this as an exception (!response.getStatus() || !response.request.success()) .In my case i have a timer which every 5 seconds does an ajax request.What i want to do is when for example the server is closed and some one is on that website with ajax i should catch that error and stop the timer.Now i cannot. On Dec 11, 2010, at 2:43 AM, Josh Canfield wrote:
> Can you provide an example of an exception that is not being handled? > > Are you talking about javascript exception or java exception? > > On Fri, Dec 10, 2010 at 1:40 PM, Dimitris Zenios > <dimitris.zen...@gmail.com> wrote: >> >> Even if i create my own exceptionhandler function and register it through >> the Tapestry.ajaxRequest(url,{ onException: function}) the exception handled >> is not called when an exception is thrown.I think the problem is in the >> succes function that tapestry.js overwrites we have this snippet of code >> when the status is 0 or the request was not a success >> >> if (!response.getStatus() || !response.request.success()) { >> Tapestry.error(Tapestry.Messages.ajaxRequestUnsuccessful); >> return; >> } >> >> it returns before calling the exception handler >> >> ps. i already submitted a jira (TAP5-1368) >> https://issues.apache.org/jira/browse/TAP5-1368 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org