<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error values in c# in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/error-values-in-c/m-p/35544#M81</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This doesn't appear to be addressed in v1.3 either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of have I missed something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 04:34:44 GMT</pubDate>
    <dc:creator>__11</dc:creator>
    <dc:date>2012-12-10T04:34:44Z</dc:date>
    <item>
      <title>Error values in c#</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/error-values-in-c/m-p/35543#M80</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to "&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/52389-File-Geodatabase-API-1.2-now-available" rel="nofollow noopener noreferrer" target="_blank"&gt;File Geodatabase API 1.2 now available&lt;/A&gt;&lt;SPAN&gt;", API v1.2 includes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Macros for error values allowing for more readable code. (NIM077630)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Requested in thread "&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/41931-Macros-for-error-values" rel="nofollow noopener noreferrer" target="_blank"&gt;Macros for error values&lt;/A&gt;&lt;SPAN&gt;".)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new macros in FileGDBCore.h work for C++ users, but is there an equivalent for C# users to programmatically handle specific values returned by FileGDBException.ErrorCode, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
catch (FileGDBException ex)
{
 switch (ex.ErrorCode)
 {
&amp;nbsp; case FileGDBError.FGDB_E_PATH_NOT_FOUND:
&amp;nbsp;&amp;nbsp; ...

&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I have my own definitions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
namespace Esri.FileGDB
{
 class FileGDBError
 {
&amp;nbsp; /*-----------------------------------------------------------------------------
&amp;nbsp;&amp;nbsp; Error values. 
&amp;nbsp;&amp;nbsp; (This is not a complete list.)
&amp;nbsp; */
&amp;nbsp; public const int FGDB_E_PATH_NOT_FOUND&amp;nbsp;&amp;nbsp;&amp;nbsp; = unchecked((int)0x80070003);
&amp;nbsp; public const int FGDB_E_FIELD_NOT_FOUND&amp;nbsp;&amp;nbsp;&amp;nbsp; = -2147219885;
&amp;nbsp; public const int FGDB_E_TABLE_ALREADY_EXISTS&amp;nbsp; = -2147220653;
&amp;nbsp; public const int FGDB_E_INVALID_RELEASE&amp;nbsp;&amp;nbsp;&amp;nbsp; = -2147220965;
&amp;nbsp; public const int FGDB_E_FEATURE_VALUE_TYPE_MISMATCH = -2147217395;
 }

}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But presumably these should be part of the delivered assembly. (Perhaps they already are, and I just don't know how to find them.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are the definitions available in C# in v1.2 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, how do I use them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, could you add them please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/error-values-in-c/m-p/35543#M80</guid>
      <dc:creator>__11</dc:creator>
      <dc:date>2021-12-10T21:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error values in c#</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/error-values-in-c/m-p/35544#M81</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This doesn't appear to be addressed in v1.3 either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of have I missed something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 04:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/error-values-in-c/m-p/35544#M81</guid>
      <dc:creator>__11</dc:creator>
      <dc:date>2012-12-10T04:34:44Z</dc:date>
    </item>
  </channel>
</rss>

