Catch std::exception instead of armnn::Exception
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Change-Id: I89ae4f3b607ccb83f1bf16e085c805d5fc5cf89c
diff --git a/ArmnnPreparedModel.cpp b/ArmnnPreparedModel.cpp
index 462970a..2f1abef 100644
--- a/ArmnnPreparedModel.cpp
+++ b/ArmnnPreparedModel.cpp
@@ -209,9 +209,9 @@
pOutputTensors->emplace_back(i, outputTensor);
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
- ALOGW("armnn::Exception caught while preparing for EnqueueWorkload: %s", e.what());
+ ALOGW("Exception caught while preparing for EnqueueWorkload: %s", e.what());
NotifyCallbackAndCheck(callback, ErrorStatus::GENERAL_FAILURE, "ArmnnPreparedModel::execute");
return ErrorStatus::GENERAL_FAILURE;
}
@@ -253,9 +253,9 @@
return;
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
- ALOGW("armnn::Exception caught from EnqueueWorkload: %s", e.what());
+ ALOGW("Exception caught from EnqueueWorkload: %s", e.what());
cb.callback(ErrorStatus::GENERAL_FAILURE, "ArmnnPreparedModel::ExecuteGraph");
return;
}
@@ -306,9 +306,9 @@
return false;
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
- ALOGW("ExecuteWithDummyInputs: armnn::Exception caught from EnqueueWorkload: %s", e.what());
+ ALOGW("ExecuteWithDummyInputs: Exception caught from EnqueueWorkload: %s", e.what());
return false;
}
return true;