We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5933c75 commit 69ea946Copy full SHA for 69ea946
src/libcadet/ParameterDependenceFactory.cpp
@@ -73,7 +73,7 @@ namespace cadet
73
if (it == _paramStateDeps.end())
74
{
75
// ParameterDependence was not found
76
- return nullptr;
+ throw InvalidParameterException("Parameter state dependence " + name + " does not exist.");
77
}
78
79
// Call factory function (thanks to type erasure of std::function we can store
@@ -87,7 +87,7 @@ namespace cadet
87
if (it == _paramParamDeps.end())
88
89
90
+ throw InvalidParameterException("Parameter parameter dependence " + name + " does not exist.");
91
92
93
0 commit comments