From 83f826537a195378fb3cc5d266fa06faf301a894 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 1 Dec 2017 17:13:51 +0000 Subject: COMPMID-724: Moved exception throwing to Error.cpp This is to make Error.h compliant with the no-exception policy in Android Change-Id: Ice73800ae1559406cb6ffe54dad9861e869894ef Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/111585 Reviewed-by: Gian Marco Iodice Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com Reviewed-by: Georgios Pinitas --- src/core/Error.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/Error.cpp') diff --git a/src/core/Error.cpp b/src/core/Error.cpp index 3b0a012f5f..be362bb7cf 100644 --- a/src/core/Error.cpp +++ b/src/core/Error.cpp @@ -56,3 +56,7 @@ void arm_compute::error(const char *function, const char *file, const int line, va_end(args); throw std::runtime_error(err.description()); } +void Error::internal_throw_on_error() +{ + throw std::runtime_error(_description); +} -- cgit v1.2.1