format error messages

This commit is contained in:
Dane Springmeyer 2011-10-31 13:43:56 -04:00
parent 64d98453f8
commit 69806f2728
2 changed files with 9 additions and 1 deletions

View file

@ -138,6 +138,10 @@ void raster_datasource::bind() const
{
throw datasource_exception("Raster Plugin: image reader exception: " + std::string(ex.what()));
}
catch (std::exception const& ex)
{
throw datasource_exception("Raster Plugin: " + std::string(ex.what()));
}
catch (...)
{
throw datasource_exception("Raster Plugin: image reader unknown exception caught");

View file

@ -123,6 +123,10 @@ feature_ptr raster_featureset<LookupPolicy>::next()
{
std::cerr << "Raster Plugin: image reader exception caught: " << ex.what() << std::endl;
}
catch (std::exception const& ex)
{
std::cerr << "Raster Plugin: " << ex.what() << std::endl;
}
catch (...)
{
std::cerr << "Raster Plugin: exception caught" << std::endl;