<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: exceptions code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Wed, 20 Aug 2008 19:26:50 GMT</pubDate>
    <description>DZone Snippets: exceptions code</description>
    <item>
      <title>python : redirect exceptions hook</title>
      <link>http://snippets.dzone.com/posts/show/660</link>
      <description>&lt;code&gt;&lt;br /&gt;import sys, traceback, string&lt;br /&gt;&lt;br /&gt;def myExceptHook(type, value, tb):&lt;br /&gt;   sys.__excepthook__(type, value, tb)&lt;br /&gt;   lines = traceback.format_exception(type, value, tb)&lt;br /&gt;   print string.join(lines)&lt;br /&gt;&lt;br /&gt;sys.excepthook = myExceptHook&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 08 Sep 2005 15:38:12 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/660</guid>
      <author>manatlan (manatlan)</author>
    </item>
  </channel>
</rss>
