Commit 9280b382 authored by Steven Murray's avatar Steven Murray
Browse files

Improved the exception type thrown

parent 6c7326d5
......@@ -2987,9 +2987,7 @@ void RdbmsCatalogue::modifyArchiveRouteTapePoolName(const common::dataStructures
stmt.executeNonQuery();
if(0 == stmt.getNbAffectedRows()) {
exception::UserError ue;
ue.getMessage() << "Archive route does not exist";
throw ue;
throw UserSpecifiedANonExistentArchiveRoute("Archive route does not exist");
}
} catch(exception::UserError &ue) {
std::ostringstream msg;
......
Markdown is supported
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