소스 검색

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