8
votes
1answer
85 views

Pass error reason in thrown object / How to handle errors in modern JavaScript [closed]

I am developing a small Node.js package which contains a parser. It throws as soon as it detects a non-recoverable problem. I have used Java for quite some years and I am used to a mass of ...
1
vote
10answers
148 views

What is the purpose of “finally” in try/catch/finally

The syntax will change from language to language, but this is a general question. What is the difference between this.... try { Console.WriteLine("Executing the try statement."); throw new ...
2
votes
3answers
63 views

How would you except this undefined method

I would like to check if the element exists and one of the methods is not blank? Please have a look at the following code: var description; var desc = ...
2
votes
3answers
55 views

Catch statement does not catch thrown error

For some reason this code gives me an uncaught exception error. It seems the catch block is not catching the error. Are try catch blocks scoped in such a way that I cannot throw an error in a nested ...
1
vote
1answer
71 views

Is throwing an exception in javascript/nodejs really that bad?

I'm reading about error handling in nodejs, and I came across something unsettling while reading this document: http://nodejs.org/api/domain.html It says "By the very nature of how throw works in ...
0
votes
0answers
58 views

Exception handler does not catch an exception

I have an excepton handler at the webflow level <exception-handler bean="webflowExceptionHandlerBean"/> Also I have two different flows, Flow A and Flow B. Flow B is a sub-flow of Flow A. ...
0
votes
1answer
143 views

How to redirect after submit when JavaScript is disallowed by browser

I have a problem in my form when JavaScript is disabled: form is submitted from page index.php form received by recipient hangs at include.emailSender.php What am I missing to return to ...
0
votes
1answer
43 views

jQuery error hander throw is not catched

So I have the following ajax query which fails. ajaxError is called and it throws an exception. But unfortunately the exception is not catched. Any ideas how to catch it? try { function ...
1
vote
1answer
57 views

Web Workers - How to achieve exception Handling for importScripts()

I'm using importScripts() in my dedicated Worker to get data from Facebook API using Graph. Occasionally the request appears to time out and Chrome Dev Tools just show a red GET and print the URL that ...
1
vote
1answer
41 views

JavaScript minifier that outputs linefeeds instead of semicolons - Windows based

We want line-numbers to be useful when an exception occurs in the clientside JavaScript. Ideally a solution that understands the ASI (Automatic Semicolon Insertion) rules i.e. that is syntax aware and ...
0
votes
1answer
66 views

JavaScript native methods silently fail rather than throw error

I'm writing a JavaScript library for the sake of the exercise, and I'm modeling the code on existing objects such as Array. What I've noticed is that methods like array.pop (when array is empty) and ...
0
votes
2answers
138 views

creating an exception handler in HTML5/javascript

I am new to the web development world and I would like I am lost in the steps of creating an exception in a java script function what I want to ideally do is something following the following syntax ...
2
votes
2answers
77 views

How to check for a specific exception in JavaScript?

I am writing a Node.js application, and inside one of its code blocks various exceptions may be thrown (by 3rd party code I call). Now I want to react on these exceptions, hence I do: try { // Call ...
1
vote
1answer
84 views

catch exception thowns by prototype javascript framework

I'm using the prototype framework to obtain a reverse ajax effect in my page, i'm using this script: <script language="JavaScript" src="prototype.js"></script> <script> ...
2
votes
1answer
439 views

Javascript Asynchronous Exception Handling with node.js

I'm currently working on a node.js app and I'm having the ususal asynchronous code issue. For learning purposes I'm implementing an http server over node's tcp module. This server supports (express ...

1 2 3 4 5
15 30 50 per page