Subject: [ggl] Definition of exception types
From: Mateusz Loskot (mateusz)
Date: 2009-06-13 21:37:32
I'd like to collect some thoughts and guidelines about exception types
defined in GGL.
Do we stick to Boost guidelines  ?
Should we have abstract ggl::exception defined as std::exception
subclass and derive all other exceptions from it?
I'd suggest to prefer to std:: naming with _error postfix, for instance
ggl::wkb::value_error, than what I have now:
Among others, there seems to be two structures popular:
1. All GGL exceptions live directly in ggl:: and are defined in single
file, for instance:
2. Exceptions are categorized using namespace
Which to prefer?
Any other insights?
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
Geometry list run by mateusz at loskot.net