aboutsummaryrefslogtreecommitdiff
path: root/src/core/Error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Error.cpp')
-rw-r--r--src/core/Error.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/Error.cpp b/src/core/Error.cpp
index be362bb7cf..b593c27a7f 100644
--- a/src/core/Error.cpp
+++ b/src/core/Error.cpp
@@ -30,16 +30,16 @@
using namespace arm_compute;
-Error arm_compute::create_error_va_list(ErrorCode error_code, const char *function, const char *file, const int line, const char *msg, va_list args)
+Status arm_compute::create_error_va_list(ErrorCode error_code, const char *function, const char *file, const int line, const char *msg, va_list args)
{
char out[512];
int offset = snprintf(out, sizeof(out), "in %s %s:%d: ", function, file, line);
vsnprintf(out + offset, sizeof(out) - offset, msg, args);
- return Error(error_code, std::string(out));
+ return Status(error_code, std::string(out));
}
-Error arm_compute::create_error(ErrorCode error_code, const char *function, const char *file, const int line, const char *msg, ...)
+Status arm_compute::create_error(ErrorCode error_code, const char *function, const char *file, const int line, const char *msg, ...)
{
va_list args;
va_start(args, msg);
@@ -54,9 +54,9 @@ void arm_compute::error(const char *function, const char *file, const int line,
va_start(args, msg);
auto err = create_error_va_list(ErrorCode::RUNTIME_ERROR, function, file, line, msg, args);
va_end(args);
- throw std::runtime_error(err.description());
+ throw std::runtime_error(err.error_description());
}
-void Error::internal_throw_on_error()
+void Status::internal_throw_on_error()
{
- throw std::runtime_error(_description);
+ throw std::runtime_error(_error_description);
}