<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Exception.number in 2003 OM = ? in 2007 OM</title><link>https://www.infopathdev.com:443/forums/thread/68533.aspx</link><pubDate>Tue, 19 Jul 2011 07:30:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68533</guid><dc:creator>michaelr524</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68533.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68533</wfw:commentRss><description>Hi Jim,

Thank&amp;#39;s for your answer.
The exception I get receive is WebException, no ErrorCode property there.
I&amp;#39;m actually starting to believe I should use HResult, maybe by getting it through reflection...
I&amp;#39;ve checked the value of HResult in a debugger and the number is close to the number which is handled in the code I&amp;#39;m porting, but it is not identical so I&amp;#39;m not sure it&amp;#39;s the right place to look..

Do you have more ideas?

Thanks,
Michael</description></item><item><title>Re: Exception.number in 2003 OM = ? in 2007 OM</title><link>https://www.infopathdev.com:443/forums/thread/68477.aspx</link><pubDate>Sun, 17 Jul 2011 18:31:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68477</guid><dc:creator>Jim Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68477</wfw:commentRss><description>&lt;p&gt;&lt;span class="kwd"&gt;&lt;font color="#00008b"&gt;It depends on the type of exception thrown. The base Exception class does not expose an exception code.&amp;nbsp; There is an HResult, but it is not a public member.&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="kwd"&gt;&lt;font color="#00008b"&gt;A exception type of COMException has an ErrorCode, which contains the standard COM errors.&amp;nbsp; You should check the type of error being thrown and see if it has a an ErrorCode or equivalent field.&amp;nbsp; Exceptions also contain an InnerException property, which if set may provide the additional detail needed.&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="kwd"&gt;&lt;font color="#00008b"&gt;try&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;// something&lt;br /&gt;}&lt;br /&gt;catch (COMException ce)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; if (ce.ErrorCode == 0x800A03EC)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; // try something else &lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="pln"&gt;&lt;/span&gt;</description></item><item><title>Re: Exception.number in 2003 OM = ? in 2007 OM</title><link>https://www.infopathdev.com:443/forums/thread/68473.aspx</link><pubDate>Sun, 17 Jul 2011 09:21:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68473</guid><dc:creator>michaelr524</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68473</wfw:commentRss><description>Anyone has any idea?

Thanks,
Michael</description></item><item><title>Exception.number in 2003 OM = ? in 2007 OM</title><link>https://www.infopathdev.com:443/forums/thread/68368.aspx</link><pubDate>Wed, 13 Jul 2011 13:35:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68368</guid><dc:creator>michaelr524</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68368.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68368</wfw:commentRss><description>Hi,

I&amp;#39;m porting forms from 2003 JS API to 2007 C# OM in order to prepare for migration to SP2010.
There is some code where the form is submitted, it&amp;#39;s wrapped in try-catch and when an exception is caught it&amp;#39;s e.number is used for showing the appropriate message to the user.
My question is what is the parallel of Exception.number in C# 2007 OM?

Thanks,
Michael</description></item></channel></rss>