Commit e62b5fc5 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: fix exception type

parent 32012012
...@@ -766,9 +766,11 @@ namespace ossimplugins ...@@ -766,9 +766,11 @@ namespace ossimplugins
// Invert system // Invert system
try { try {
dR = B.i() * F; dR = B.i() * F;
} catch (std::exception const& e) { } catch (NEWMAT::SingularException const& e) {
// NEWMATH exception // NEWMATH exception
throw std::runtime_error(e.what()); throw std::runtime_error(e.what());
} catch (...) {
throw std::runtime_error("Cannot invert 3x3 matrix in projToSurface");
} }
// Update estimate // Update estimate
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment