[fdo-internals] Enhanced Exception Types in FDO
Zac Spitzer
zac.spitzer at gmail.com
Mon Jun 1 22:47:26 EDT 2009
It would be nice if we had defined error codes ase well which
people could then google to find out more information
ie FDO-0001 FDO-0002 or FDO-NotUniquePropertyvalue
searching for info using generic error phrases is rather difficult
with regards to Franks question, if we look at say JDBC or ODBC
both return the native error code / message
what about returning the generated sql used as well?
one of the oft raised questions on the mapguide list is in regards
to the use of the IN operator
a good example is when you hit a unique index or constraint, assuming the
underlying database has nicely named constraints/indexes, the native
error message
includes the name of the constraint which can be self explanatory
z
On Tue, Jun 2, 2009 at 12:29 PM, Frank Warmerdam <warmerdam at pobox.com> wrote:
> Greg Boone wrote:
>>
>> Hi All,
>>
>>
>> I am currently struggling with the topic of error handling and exceptions
>> in FDO, FDO Providers and applications that use them. I would like to get
>> some feedback from the community on how we could possibly resolve this issue
>> in the next planned release of FDO (trunk).
>
> Greg,
>
> I wonder if you could talk us through a couple examples where the current
> system is inadequate. I can see value in adding some additional exception
> classes to support finer grained error handling.
>
> I'm concerned that exposing native error codes and provider id's as part
> of exceptions is giving up on genericity in the FDO API. But if you can
> illustrate cases where this is critical it could be ok.
>
> From the point of view of the GDAL provider, I have no need to provide
> finer grained error information from GDAL itself. GDAL has a very thin
> set of native error codes, and essentially the error text (which is
> formatted with potentially lots of detail) is the important cargo.
>
> Of course, I have not done much application writing on FDO so it is hard
> for me to know what things applications writers are having trouble handling.
>
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | Geospatial Programmer for Rent
>
> _______________________________________________
> fdo-internals mailing list
> fdo-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-internals
>
--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
More information about the fdo-internals
mailing list