<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Exception handling in JavaScript</title>
	<atom:link href="http://unitstep.net/blog/2007/11/25/exception-handling-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net/blog/2007/11/25/exception-handling-in-javascript/</link>
	<description>the home of peter chng</description>
	<pubDate>Thu, 20 Nov 2008 12:48:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Peter Chng</title>
		<link>http://unitstep.net/blog/2007/11/25/exception-handling-in-javascript/#comment-99259</link>
		<dc:creator>Peter Chng</dc:creator>
		<pubDate>Tue, 18 Mar 2008 01:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2007/11/25/exception-handling-in-javascript/#comment-99259</guid>
		<description>Hi Paul,

I wasn't able to reproduce your error.  How are you doing the import?  I just linked the files using the &#60;script&#62; tags.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>I wasn&#8217;t able to reproduce your error.  How are you doing the import?  I just linked the files using the &lt;script&gt; tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Bull</title>
		<link>http://unitstep.net/blog/2007/11/25/exception-handling-in-javascript/#comment-99197</link>
		<dc:creator>Paul Bull</dc:creator>
		<pubDate>Mon, 17 Mar 2008 14:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2007/11/25/exception-handling-in-javascript/#comment-99197</guid>
		<description>I'm trying to figure out if you can handle exceptions across files? For example:
File 1:
function Throw()
{
  throw new Error();
}

File 2: (imports from file 1)
function TryCatch()
{
  try
  {
     Throw();
  }
  catch(ex)
  {
    return ex.message;
  }
}

Can't seem to get this to work. Complains that there is not try/catch block in Throw().  Is there a way around this?

Thank,
Paul</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to figure out if you can handle exceptions across files? For example:<br />
File 1:<br />
function Throw()<br />
{<br />
  throw new Error();<br />
}</p>
<p>File 2: (imports from file 1)<br />
function TryCatch()<br />
{<br />
  try<br />
  {<br />
     Throw();<br />
  }<br />
  catch(ex)<br />
  {<br />
    return ex.message;<br />
  }<br />
}</p>
<p>Can&#8217;t seem to get this to work. Complains that there is not try/catch block in Throw().  Is there a way around this?</p>
<p>Thank,<br />
Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>
