From b9cb84484b29ca588661b542bf8f93a8fb14edc1 Mon Sep 17 00:00:00 2001 From: Derek Lamberti Date: Thu, 28 Nov 2019 13:34:48 +0000 Subject: Catch std::exception instead of armnn::Exception Signed-off-by: Derek Lamberti Change-Id: I89ae4f3b607ccb83f1bf16e085c805d5fc5cf89c --- ArmnnDriverImpl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ArmnnDriverImpl.cpp') diff --git a/ArmnnDriverImpl.cpp b/ArmnnDriverImpl.cpp index de80445a..9fe2c0e7 100644 --- a/ArmnnDriverImpl.cpp +++ b/ArmnnDriverImpl.cpp @@ -108,10 +108,10 @@ Return ArmnnDriverImpl::prepareModel( OptOptions, errMessages); } - catch (armnn::Exception &e) + catch (std::exception &e) { stringstream message; - message << "armnn::Exception (" << e.what() << ") caught from optimize."; + message << "Exception (" << e.what() << ") caught from optimize."; FailPrepareModel(ErrorStatus::GENERAL_FAILURE, message.str(), cb); return ErrorStatus::NONE; } @@ -142,10 +142,10 @@ Return ArmnnDriverImpl::prepareModel( return FailPrepareModel(ErrorStatus::GENERAL_FAILURE, "Network could not be loaded", cb); } } - catch (armnn::Exception& e) + catch (std::exception& e) { stringstream message; - message << "armnn::Exception (" << e.what()<< ") caught from LoadNetwork."; + message << "Exception (" << e.what()<< ") caught from LoadNetwork."; FailPrepareModel(ErrorStatus::GENERAL_FAILURE, message.str(), cb); return ErrorStatus::NONE; } @@ -173,7 +173,7 @@ Return ArmnnDriverImpl::prepareModel( { clTunedParameters->Save(options.GetClTunedParametersFile().c_str()); } - catch (const armnn::Exception& error) + catch (std::exception& error) { ALOGE("ArmnnDriverImpl::prepareModel: Failed to save CL tuned parameters file '%s': %s", options.GetClTunedParametersFile().c_str(), error.what()); -- cgit v1.2.1