13 #define CALL_STATUS_FNC(function, ...) \ 15 auto res = actual->function(__VA_ARGS__, &resp); \ 16 if (res != OK) InferenceEngine::details::extract_exception(res, resp.msg); 18 #define CALL_STATUS_FNC_NO_ARGS(function) \ 20 auto res = actual->function(&resp); \ 21 if (res != OK) InferenceEngine::details::extract_exception(res, resp.msg); 23 #define CALL_FNC(function, ...) \ 25 auto result = actual->function(__VA_ARGS__, &resp); \ 26 if (resp.msg[0] != '\0') { \ 27 THROW_IE_EXCEPTION << resp.msg; \ 31 #define CALL_FNC_REF(function, ...) \ 33 auto& result = actual->function(__VA_ARGS__, &resp); \ 34 if (resp.msg[0] != '\0') { \ 35 THROW_IE_EXCEPTION << resp.msg; \ 39 #define CALL_FNC_NO_ARGS(function) \ 41 auto result = actual->function(&resp); \ 42 if (resp.msg[0] != '\0') { \ 43 THROW_IE_EXCEPTION << resp.msg; \ 47 #define CALL_FNC_NO_ARGS_REF(function) \ 49 auto& result = actual->function(&resp); \ 50 if (resp.msg[0] != '\0') { \ 51 THROW_IE_EXCEPTION << resp.msg; \ 58 inline void extract_exception(
StatusCode status,
char* msg) {
61 throw NotImplemented(msg);
62 case NETWORK_NOT_LOADED:
63 throw NetworkNotLoaded(msg);
64 case PARAMETER_MISMATCH:
65 throw ParameterMismatch(msg);
69 throw OutOfBounds(msg);
71 throw Unexpected(msg);
73 throw RequestBusy(msg);
74 case RESULT_NOT_READY:
75 throw ResultNotReady(msg);
77 throw NotAllocated(msg);
78 case INFER_NOT_STARTED:
79 throw InferNotStarted(msg);
80 case NETWORK_NOT_READ:
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
StatusCode
This enum contains codes for all possible return values of the interface functions.
Definition: ie_common.h:216
This class represents StatusCode::NETWORK_NOT_READ exception.
Definition: ie_common.h:303
This is a header file with common inference engine definitions.