aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Error.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-12-01 17:13:51 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:41:58 +0000
commit83f826537a195378fb3cc5d266fa06faf301a894 (patch)
tree0ba191057880c907a861c0f2764bd43f8f24970a /arm_compute/core/Error.h
parent5b73ce1428d32a2c817562b3447840dc6d0e71b8 (diff)
downloadComputeLibrary-83f826537a195378fb3cc5d266fa06faf301a894.tar.gz
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 <gianmarco.iodice@arm.com> Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/core/Error.h')
-rw-r--r--arm_compute/core/Error.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h
index 277db9d64d..bd80aa4162 100644
--- a/arm_compute/core/Error.h
+++ b/arm_compute/core/Error.h
@@ -25,7 +25,6 @@
#define __ARM_COMPUTE_ERROR_H__
#include <stdarg.h>
-#include <stdexcept>
#include <string>
namespace arm_compute
@@ -97,10 +96,7 @@ public:
private:
/** Internal throwing function */
- [[noreturn]] void internal_throw_on_error()
- {
- throw std::runtime_error(_description);
- }
+ [[noreturn]] void internal_throw_on_error();
private:
ErrorCode _code;