The Status that holds ownership of OrtStatus received from C API Use it to safely destroy OrtStatus* returned from the C API. Use appropriate constructors to construct an instance of a Status object from exceptions.
More...
#include <onnxruntime_cxx_api.h>
The Status that holds ownership of OrtStatus received from C API Use it to safely destroy OrtStatus* returned from the C API. Use appropriate constructors to construct an instance of a Status object from exceptions.
◆ Status() [1/5]
Ort::Status::Status |
( |
std::nullptr_t |
| ) |
|
|
inlineexplicitnoexcept |
Create an empty object, must be assigned a valid one to be used.
◆ Status() [2/5]
Takes ownership of OrtStatus instance returned from the C API.
◆ Status() [3/5]
Creates status instance out of exception.
◆ Status() [4/5]
Ort::Status::Status |
( |
const std::exception & |
| ) |
|
|
explicitnoexcept |
Creates status instance out of exception.
◆ Status() [5/5]
Ort::Status::Status |
( |
const char * |
message, |
|
|
OrtErrorCode |
code |
|
) |
| |
|
noexcept |
Creates status instance out of null-terminated string message.
◆ GetErrorCode()
◆ GetErrorMessage()
std::string Ort::Status::GetErrorMessage |
( |
| ) |
const |
◆ IsOK()
bool Ort::Status::IsOK |
( |
| ) |
const |
|
noexcept |
Returns true if instance represents an OK (non-error) status.