[geos-devel] GEOSException is incompatible with std::exception

strk at refractions.net strk at refractions.net
Tue Apr 4 11:40:52 EDT 2006


On Tue, Apr 04, 2006 at 04:44:31PM +0200, Mateusz Å?oskot wrote:

> Honestly, I don't think al GEOS exceptions can be categorized as
> runtime_exception, some are logical e.g. IllegalArgumentException.
> GEOSException is a general geos exception and I think it should be
> derived directly from std::exception.
> GEOSException could be defined similarly as those exceptions in
> <stdexcept> file.
> 
> What do you think?

That's fine with me.
Anyway, I think this was previous layout.
Maybe the problem was GEOSException didn't define
what() as a 'const' method (thus NOT overriding
the non-const version) ?

--strk;




More information about the geos-devel mailing list