From 96d6907424a0af3d339226555426060e14e40df1 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Tue, 4 Sep 2018 08:54:34 +0200 Subject: [PATCH] update to new exception scheme --- include/TestFacility.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/TestFacility.h b/include/TestFacility.h index 44524f4e..ddec5d9f 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) -- GitLab