[geos-commits] r3066 - trunk/capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Jun 24 04:27:46 EDT 2010
Author: strk
Date: 2010-06-24 08:27:46 +0000 (Thu, 24 Jun 2010)
New Revision: 3066
Modified:
trunk/capi/geos_ts_c.cpp
Log:
Properly catch exceptions from WKTWriter::setOutputDimension and WKBWriter::setOutputDimension
Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp 2010-06-24 08:27:16 UTC (rev 3065)
+++ trunk/capi/geos_ts_c.cpp 2010-06-24 08:27:46 UTC (rev 3066)
@@ -4117,7 +4117,18 @@
return;
}
- writer->setOutputDimension(dim);
+ try
+ {
+ writer->setOutputDimension(dim);
+ }
+ catch (const std::exception &e)
+ {
+ handle->ERROR_MESSAGE("%s", e.what());
+ }
+ catch (...)
+ {
+ handle->ERROR_MESSAGE("Unknown exception thrown");
+ }
}
void
@@ -4506,6 +4517,10 @@
{
writer->setOutputDimension(newDimension);
}
+ catch (const std::exception &e)
+ {
+ handle->ERROR_MESSAGE("%s", e.what());
+ }
catch (...)
{
handle->ERROR_MESSAGE("Unknown exception thrown");
More information about the geos-commits
mailing list