HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::OnnxRuntimeException Class Reference

#include <exceptions.h>

+ Inheritance diagram for onnxruntime::OnnxRuntimeException:

Public Member Functions

 OnnxRuntimeException (const CodeLocation &location, const std::string &msg) noexcept
 
 OnnxRuntimeException (const CodeLocation &location, const char *failed_condition, const std::string &msg)
 
const char * what () const noexceptoverride
 

Detailed Description

Definition at line 29 of file exceptions.h.

Constructor & Destructor Documentation

onnxruntime::OnnxRuntimeException::OnnxRuntimeException ( const CodeLocation location,
const std::string msg 
)
inlinenoexcept

Definition at line 31 of file exceptions.h.

onnxruntime::OnnxRuntimeException::OnnxRuntimeException ( const CodeLocation location,
const char *  failed_condition,
const std::string msg 
)
inline

Create a new exception that captures the location it was thrown from.

Parameters
locationLocation in the source code the exception is being thrown from
failed_conditionOptional string containing the condition that failed. e.g. "tensor.Size() == input.Size()". May be nullptr.
msgMessage containing additional information about the exception cause.

Definition at line 42 of file exceptions.h.

Member Function Documentation

const char* onnxruntime::OnnxRuntimeException::what ( ) const
inlineoverridenoexcept

Definition at line 61 of file exceptions.h.


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