11 #include "FaissException.h"
15 FaissException::FaissException(
const std::string& m)
19 FaissException::FaissException(
const std::string& m,
23 int size = snprintf(
nullptr, 0,
"Error in %s at %s:%d: %s",
24 funcName, file, line, m.c_str());
26 snprintf(&msg[0], msg.size(),
"Error in %s at %s:%d: %s",
27 funcName, file, line, m.c_str());
const char * what() const noexceptoverride
from std::exception