Change-Id: I835c471b38756a9d3cee1ddfe4c4b90591744aa4
ServicePluginInterfacePtr servicePlugin =
std::dynamic_pointer_cast<ServicePluginInterface>(plugin);
- if (!plugin) {
- throw PluginNotFoundException(result);
+ if (!servicePlugin) {
+ result = PolicyResult(PredefinedPolicyType::DENY);
+ return true;
}
AgentType requiredAgent;
}
return false;
default:
- throw PluginErrorException(key); // This 'throw' should be removed or handled properly.
+ result = PolicyResult(PredefinedPolicyType::DENY);
+ return true;
}
}