16 namespace onnxruntime {
20 explicit NotImplementedException(
const char* _Message =
"Function not yet implemented") noexcept : std::logic_error(_Message){};
43 : location_{location} {
44 std::ostringstream ss;
47 if (failed_condition !=
nullptr) {
48 ss <<
" " << failed_condition <<
" was false.";
51 ss <<
" " << msg <<
"\n";
53 ss <<
"Stacktrace:\n";
55 std::copy(std::next(
location.stacktrace.begin()),
location.stacktrace.end(), std::ostream_iterator<std::string>(ss,
"\n"));
61 const char*
what() const noexcept
override {
67 const std::vector<std::string> stacktrace_;
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
GLsizei const GLchar *const * string
std::string ToString(Format format=Format::kFilename) const
TypeMismatchException() noexcept
OnnxRuntimeException(const CodeLocation &location, const std::string &msg) noexcept
OnnxRuntimeException(const CodeLocation &location, const char *failed_condition, const std::string &msg)
NotImplementedException(const char *_Message="Function not yet implemented") noexcept
const char * what() const noexceptoverride
NotImplementedException(const std::string &_Message="Function not yet implemented") noexcept