HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::Exception Struct Reference

All C++ methods that can fail will throw an exception of this type. More...

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::Exception:

Public Member Functions

 Exception (std::string &&string, OrtErrorCode code)
 
OrtErrorCode GetOrtErrorCode () const
 
const char * what () const noexceptoverride
 

Detailed Description

All C++ methods that can fail will throw an exception of this type.

If ORT_NO_EXCEPTIONS is defined, then any error will result in a call to abort()

Definition at line 50 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::Exception::Exception ( std::string &&  string,
OrtErrorCode  code 
)
inline

Definition at line 51 of file onnxruntime_cxx_api.h.

Member Function Documentation

OrtErrorCode Ort::Exception::GetOrtErrorCode ( ) const
inline

Definition at line 53 of file onnxruntime_cxx_api.h.

const char* Ort::Exception::what ( ) const
inlineoverridenoexcept

Definition at line 54 of file onnxruntime_cxx_api.h.


The documentation for this struct was generated from the following file: