36 return Status(error_code, msg);
41 std::array<char, 512> out{ 0 };
42 snprintf(out.data(), out.size(),
"in %s %s:%d: %s", func, file, line, msg);
43 return Status(error_code, std::string(out.data()));
50 void Status::internal_throw_on_error()
const Status create_error_msg(ErrorCode error_code, const char *func, const char *file, int line, const char *msg)
Creates an error and the error message.
Copyright (c) 2017-2021 Arm Limited.
void throw_error(Status err)
Throw an std::runtime_error.
ErrorCode
Available error codes.
Status create_error(ErrorCode error_code, std::string msg)
Creates an error containing the error message.
#define ARM_COMPUTE_THROW(ex)
int snprintf(char *s, std::size_t n, const char *fmt, Ts &&... args)
Loads the data from the given location, converts them to character string equivalents and writes the ...
std::string error_description() const
Gets error description if any.