Преглед изворни кода

Throw std::invalid_argument instead of generic std::logic_error.

Sascha Zelzer пре 13 година
родитељ
комит
96e24db86e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Libs/PluginFramework/service/cm/ctkConfigurationEvent.cpp

+ 1 - 1
Libs/PluginFramework/service/cm/ctkConfigurationEvent.cpp

@@ -92,7 +92,7 @@ ctkConfigurationEvent::ctkConfigurationEvent(const ctkServiceReference& referenc
 {
   if (pid.isNull())
   {
-    throw std::logic_error("pid must not be null");
+    throw std::invalid_argument("pid must not be null");
   }
 }