Skip to content

Commit

Permalink
Remove catch(...) in StandaloneTrackerTopology.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterdavid committed Jul 28, 2017
1 parent a659ae3 commit ad9acef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CalibTracker/SiStripCommon/src/StandaloneTrackerTopology.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ TrackerTopology fromTrackerParametersXML( const std::string& xmlFileName )
} catch ( const DOMException& domEx ) {
throw cms::Exception("StandaloneTrackerTopology",
"DOM exception when parsing " + xmlFileName + " : " + xmlc_to_stdstring(domEx.getMessage()));
} catch (...) {
} catch ( const SAXException& saxEx ) {
throw cms::Exception("StandaloneTrackerTopology",
"Unexpected exception when parsing " + xmlFileName);
"SAX exception when parsing " + xmlFileName + " : " + xmlc_to_stdstring(saxEx.getMessage()));
}

const std::string subdetName{"Subdetector"};
Expand Down Expand Up @@ -221,9 +221,9 @@ TrackerTopology fromTrackerParametersXML( const std::string& xmlFileName )
}
}
}
} catch (...) {
} catch ( const DOMException& domEx ) {
throw cms::Exception("StandaloneTrackerTopology",
"Unexpected exception in parsing "+xmlFileName);
"DOM exception in "+xmlFileName+" : "+xmlc_to_stdstring(domEx.getMessage()));
}

} // parser and DOM scope
Expand Down

0 comments on commit ad9acef

Please sign in to comment.