MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / exception

Method exception

src/api/cpp/exception.cpp:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace af {
20
21exception::exception() : m_msg{}, m_err(AF_ERR_UNKNOWN) {
22 strncpy(m_msg, "unknown exception", sizeof(m_msg));
23}
24
25exception::exception(const char *msg) : m_msg{}, m_err(AF_ERR_UNKNOWN) {
26 strncpy(m_msg, msg, sizeof(m_msg) - 1);

Callers

nothing calls this directly

Calls 1

af_err_to_stringFunction · 0.85

Tested by

no test coverage detected