13 #define CALL_STATUS_FNC(function, ...) \ 14 if (!actual) THROW_IE_EXCEPTION << "Wrapper used in the CALL_STATUS_FNC was not initialized."; \ 16 auto res = actual->function(__VA_ARGS__, &resp); \ 17 if (res != OK) InferenceEngine::details::extract_exception(res, resp.msg); 19 #define CALL_STATUS_FNC_NO_ARGS(function) \ 20 if (!actual) THROW_IE_EXCEPTION << "Wrapper used in the CALL_STATUS_FNC_NO_ARGS was not initialized."; \ 22 auto res = actual->function(&resp); \ 23 if (res != OK) InferenceEngine::details::extract_exception(res, resp.msg); 25 #define CALL_FNC_NO_ARGS(function) \ 26 if (!actual) THROW_IE_EXCEPTION << "Wrapper used in the CALL_FNC_NO_ARGS was not initialized."; \ 28 auto result = actual->function(&resp); \ 29 if (resp.msg[0] != '\0') { \ 30 THROW_IE_EXCEPTION << resp.msg; \ 37 inline void extract_exception(StatusCode status,
char* msg) {
40 throw NotImplemented(msg);
41 case NETWORK_NOT_LOADED:
42 throw NetworkNotLoaded(msg);
43 case PARAMETER_MISMATCH:
44 throw ParameterMismatch(msg);
48 throw OutOfBounds(msg);
50 throw Unexpected(msg);
52 throw RequestBusy(msg);
53 case RESULT_NOT_READY:
54 throw ResultNotReady(msg);
56 throw NotAllocated(msg);
57 case INFER_NOT_STARTED:
58 throw InferNotStarted(msg);
59 case NETWORK_NOT_READ:
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
Definition: cldnn_config.hpp:16
This class represents StatusCode::NETWORK_NOT_READ exception.
Definition: ie_common.h:311
This is a header file with common inference engine definitions.