<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Exception Handling in WSAdmin Scripts</title>
	<atom:link href="http://myarch.com/exception-handling-in-wsadmin-scripts/feed" rel="self" type="application/rss+xml" />
	<link>http://myarch.com/exception-handling-in-wsadmin-scripts</link>
	<description>Builds and bytes</description>
	<lastBuildDate>Wed, 01 Sep 2010 00:22:34 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alexander Ananiev</title>
		<link>http://myarch.com/exception-handling-in-wsadmin-scripts/comment-page-1#comment-35104</link>
		<dc:creator>Alexander Ananiev</dc:creator>
		<pubDate>Thu, 19 Nov 2009 04:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=146#comment-35104</guid>
		<description>Bob, thanks for the tip. Here we&#039;re trying to handle WAS-related exceptions only to avoid full Java trace. Therefore, it is safer to catch ScriptingException first as opposed to catching everything and then sorting through different exception types.</description>
		<content:encoded><![CDATA[<p>Bob, thanks for the tip. Here we&#8217;re trying to handle WAS-related exceptions only to avoid full Java trace. Therefore, it is safer to catch ScriptingException first as opposed to catching everything and then sorting through different exception types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Gibson</title>
		<link>http://myarch.com/exception-handling-in-wsadmin-scripts/comment-page-1#comment-35103</link>
		<dc:creator>Bob Gibson</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=146#comment-35103</guid>
		<description>Your indentation is broken.  You should also make use of the exception type(i.e., sys.exc_info()[ 0 ]).  For example:

wsadmin&gt;try :
wsadmin&gt;  AdminTask.unknownMethod( &#039;Parameter&#039; )
wsadmin&gt;except :
wsadmin&gt;  ( kind, value ) = sys.exc_info()[ :2 ]
wsadmin&gt;  ( kind, value ) = str( kind ), str( value )
wsadmin&gt;  print &#039;Exception  type: &#039; + kind
wsadmin&gt;  print &#039;Exception value: &#039; + value
wsadmin&gt;
Exception  type: exceptions.AttributeError
Exception value: unknownMethod
wsadmin&gt;</description>
		<content:encoded><![CDATA[<p>Your indentation is broken.  You should also make use of the exception type(i.e., sys.exc_info()[ 0 ]).  For example:</p>
<p>wsadmin&gt;try :<br />
wsadmin&gt;  AdminTask.unknownMethod( &#8216;Parameter&#8217; )<br />
wsadmin&gt;except :<br />
wsadmin&gt;  ( kind, value ) = sys.exc_info()[ :2 ]<br />
wsadmin&gt;  ( kind, value ) = str( kind ), str( value )<br />
wsadmin&gt;  print &#8216;Exception  type: &#8216; + kind<br />
wsadmin&gt;  print &#8216;Exception value: &#8216; + value<br />
wsadmin&gt;<br />
Exception  type: exceptions.AttributeError<br />
Exception value: unknownMethod<br />
wsadmin&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
