diff --git a/include/TestFacility.h b/include/TestFacility.h index 44524f4eec9693ff10092928174885932920bf3d..ddec5d9f04900b6e4786f30ddeef7ef68630eb05 100644 --- a/include/TestFacility.h +++ b/include/TestFacility.h @@ -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)