ONE - On-device Neural Engine
Loading...
Searching...
No Matches
oops::InternalExn Class Reference

Exception caused by internal error. More...

#include <InternalExn.h>

Collaboration diagram for oops::InternalExn:

Public Member Functions

 InternalExn (const char *filename, const int line, const std::string &msg)
 
 InternalExn (const char *filename, const int line, const std::string &msg, uint32_t val)
 
 InternalExn (const char *filename, const int line, const std::string &msg, const std::string &val)
 
const char * what () const noexcept override
 

Detailed Description

Exception caused by internal error.

Note: Please use the above MACROs

Definition at line 40 of file InternalExn.h.

Constructor & Destructor Documentation

◆ InternalExn() [1/3]

oops::InternalExn::InternalExn ( const char *  filename,
const int  line,
const std::string &  msg 
)
inline

Definition at line 43 of file InternalExn.h.

44 : _filename(filename), _line(to_uint32(line)), _msg(msg)
45 {
46 construct_full_msg();
47 }
uint32_t to_uint32(T a)
Definition InternalExn.h:33

◆ InternalExn() [2/3]

oops::InternalExn::InternalExn ( const char *  filename,
const int  line,
const std::string &  msg,
uint32_t  val 
)
inlineexplicit

Definition at line 49 of file InternalExn.h.

50 : _filename(filename), _line(to_uint32(line)), _msg(msg + ": " + std::to_string(val))
51 {
52 construct_full_msg();
53 }

◆ InternalExn() [3/3]

oops::InternalExn::InternalExn ( const char *  filename,
const int  line,
const std::string &  msg,
const std::string &  val 
)
inlineexplicit

Definition at line 55 of file InternalExn.h.

57 : _filename(filename), _line(to_uint32(line)), _msg(msg + ": " + val)
58 {
59 construct_full_msg();
60 }

Member Function Documentation

◆ what()

const char * oops::InternalExn::what ( ) const
inlineoverridenoexcept

Definition at line 62 of file InternalExn.h.

62{ return _full_msg.c_str(); }

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