<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/error</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 17:23:10 GMT</pubDate>
<item>
<title>(JavaScript) Simple Javascript Error Checking - Quick Submit - ryarwood</title>
<link>http://snipplr.com/view/62869/simple-javascript-error-checking--quick-submit/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 30 Jan 2012 08:47:28 GMT</pubDate>
<guid>http://snipplr.com/view/62869/simple-javascript-error-checking--quick-submit/</guid>
</item>
<item>
<title>(JavaScript) Dead Simple Javascript Error Checking - ryarwood</title>
<link>http://snipplr.com/view/56952/dead-simple-javascript-error-checking/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Jul 2011 07:05:23 GMT</pubDate>
<guid>http://snipplr.com/view/56952/dead-simple-javascript-error-checking/</guid>
</item>
<item>
<title>(JavaScript) innerXHTML - nicolaspar</title>
<link>http://snipplr.com/view/33916/innerxhtml/</link>
<description><![CDATA[ <p>html = innerXHTML (document.getElementById('div_id'))
alert(html)</p> ]]></description>
<pubDate>Wed, 05 May 2010 14:48:21 GMT</pubDate>
<guid>http://snipplr.com/view/33916/innerxhtml/</guid>
</item>
<item>
<title>(JavaScript) Javascript Global Error Handling - delikassap</title>
<link>http://snipplr.com/view/19189/javascript-global-error-handling/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Sep 2009 16:09:05 GMT</pubDate>
<guid>http://snipplr.com/view/19189/javascript-global-error-handling/</guid>
</item>
<item>
<title>(JavaScript) ErrorConstructor - Sephr</title>
<link>http://snipplr.com/view/13546/errorconstructor/</link>
<description><![CDATA[ <p>ErrorConstructor produces error constructors that behave the same way as the seven native error constructors.

Usage: `ErrorConstructor([constructorName])`

*If no constructorName is specified, the default of `Error.prototype.name` is used*

Usage for generated error constructor: `errorConstructor([message[, location[, lineNumber]])`

Examples:

    var SecurityError = ErrorConstructor("Security Error"),
    MarkupError = ErrorConstructor("(X)HTML Markup Error");
    //these will both throw a SecurityError starting with "Security Error on line 83:"
    var xss_error = "Possible XSS Vector\n\
     JSON XHR response parsed with eval()\n\
     Recommended fix: Parse JSON with JSON.parse";
    throw new SecurityError(xss_error, "/js/searchResultsJSONloader.js", 83);
    throw SecurityError(xss_error, "/js/searchResultsJSONloader.js", 83);
    //these will both throw the following MarkupError:
    //"(X)HTML Markup Error on line 1: Invalid DOCTYPE"
    throw new MarkupError("Invalid DOCTYPE");
    throw MarkupError("Invalid DOCTYPE");</p> ]]></description>
<pubDate>Sun, 29 Mar 2009 00:27:52 GMT</pubDate>
<guid>http://snipplr.com/view/13546/errorconstructor/</guid>
</item>
</channel>
</rss>