| 37 | te_error_base() : runtime_error("tengine error") {} |
| 38 | }; |
| 39 | struct te_error_shared_function_not_found : public te_error_base |
| 40 | { |
| 41 | using te_error_base::te_error_base; |
| 42 | static std::string msg; |
| 43 | |
| 44 | te_error_shared_function_not_found(const std::string& func_name) |
| 45 | { |
| 46 | msg = "\nShared function not found: "; |
| 47 | msg += func_name; |
| 48 | msg += "\n"; |
| 49 | } |
| 50 | |
| 51 | const char* what() const throw() override |
| 52 | { |
| 53 | return msg.c_str(); |
| 54 | } |
| 55 | }; |
| 56 | struct te_error_unable_to_load_library : public te_error_base |
| 57 | { |
| 58 | using te_error_base::te_error_base; |