Simplified IE Exceptions Implementation (#4258)

This commit is contained in:
Anton Pankratv
2021-03-18 16:30:16 +03:00
committed by GitHub
parent d068810936
commit a2b8b974b8
305 changed files with 1192 additions and 1585 deletions

View File

@@ -432,7 +432,7 @@ int main(int argc, char *argv[]) {
std::string key = METRIC_KEY(OPTIMAL_NUMBER_OF_INFER_REQUESTS);
try {
nireq = exeNetwork.GetMetric(key).as<unsigned int>();
} catch (const details::InferenceEngineException& ex) {
} catch (const std::exception& ex) {
THROW_IE_EXCEPTION
<< "Every device used with the benchmark_app should "
<< "support OPTIMAL_NUMBER_OF_INFER_REQUESTS ExecutableNetwork metric. "