Is there a way to get more detail on error?

1090
4
02-08-2011 01:14 AM
Chee_ChonThum
New Contributor
I used the API to try to open my geodatabase, and the OpenGeodatabase() function return -1. I tried it on the sample gdb in the API and the function succeeded.

Is there any way to get more detail on why the function failed? A description of the last error will be helpful.
0 Kudos
4 Replies
LanceShipman
Esri Regular Contributor
At this point there is no way to get more detail on an error. Beta 2 will document many of the error codes. We are looking at ways to provide more detailed error messages.

Is the geodatabase you are trying to open a pre-10.x file geodatabase? The API only supports 10.x file geodatabases.
0 Kudos
Chee_ChonThum
New Contributor
Yes, I was trying to open a 9.3 geodatabase. Will there be any support for pre-10 geodatabase in the future?
0 Kudos
LanceShipman
Esri Regular Contributor
The File Geodatabase API leverages the work done in ArcGIS 10 to simplify the Geodatabase system tables. Because of this there are no plans to support pre-10.0 versions of the File Geodatabase.

Before final we will return a more descriptive code when an attempt is made to open a pre10.0 Geodatabase. -1 is not particularly helpful.
0 Kudos
BobCave
New Contributor
Hi,

I am curious...why are you using return codes instead of throwing exceptions?

Cheers,

Bob
0 Kudos