浏览代码

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");
   }
 }