[fdo-internals] Enhanced Exception Types in FDO

Jackie Ng jumpinjackie at gmail.com
Mon Jun 1 19:52:37 EDT 2009


Hi Greg,

How about including the provider name as part of the exception?

eg. GetProvider() returns "OSGeo.SQLite" if exception thrown from SQLite
provider, "OSGeo.MySQL" if thrown from MySQL, etc.

- Jackie


Greg Boone wrote:
> 
> 
> The GetNativeErrorCode thought is a good one, but by using it in an
> application, they would really have to know which provider returned that
> code and do some form of look-up to determine what it actually means. This
> would reduce the amount of generic provider agnostic code that
> applications can effectively write. I can see IsOracle() or IsPostGIS()
> calls creeping into applications and developers attempt to take advantage.
> 
> 

-- 
View this message in context: http://n2.nabble.com/Enhanced-Exception-Types-in-FDO-tp3008754p3009516.html
Sent from the FDO Internals mailing list archive at Nabble.com.



More information about the fdo-internals mailing list