24.02.1
|
Go to the documentation of this file.
36 return Status(error_code, msg);
42 std::array<char, 512> out{0};
43 snprintf(out.data(), out.size(),
"in %s %s:%d: %s", func, file, line, msg);
44 return Status(error_code, std::string(out.data()));
51 void Status::internal_throw_on_error()
const
Status create_error(ErrorCode error_code, std::string msg)
Creates an error containing the error message.
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.
std::string error_description() const
Gets error description if any.
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 ...
ErrorCode
Available error codes.
void throw_error(Status err)
Throw an std::runtime_error.
Copyright (c) 2017-2024 Arm Limited.
#define ARM_COMPUTE_THROW(ex)