Skip to content
Snippets Groups Projects
Commit 96d69074 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

update to new exception scheme

parent 307f35b4
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,7 @@ namespace ChimeraTK {
// obtain accessor from ControlSystemPVManager
auto pv = pvManager->getProcessArray<T>(name);
if(pv == nullptr) {
throw mtca4u::DeviceException("Process variable '"+name+"' does not exist.",
mtca4u::DeviceException::REGISTER_DOES_NOT_EXIST);
throw ChimeraTK::logic_error("Process variable '"+name+"' does not exist.");
}
// obtain variable id from pvIdMap and transfer it to idMap (required by the TestDecoratorRegisterAccessor)
......@@ -97,8 +96,7 @@ namespace ChimeraTK {
// obtain accessor from ControlSystemPVManager
auto pv = pvManager->getProcessArray<T>(name);
if(pv == nullptr) {
throw mtca4u::DeviceException("Process variable '"+name+"' does not exist.",
mtca4u::DeviceException::REGISTER_DOES_NOT_EXIST);
throw ChimeraTK::logic_error("Process variable '"+name+"' does not exist.");
}
// obtain variable id from pvIdMap and transfer it to idMap (required by the TestDecoratorRegisterAccessor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment