Remove constructors for ov Exceptions (#16938)
* Remove constructors for ov Exceptions * Fixed linux build * Fixed ONNX Frontend * Fixed paddle * Fixed exceptions in tests * Deprecate constructors for ov::Exception * Suppress some warnings * Merge several exceptions * Some small changes * Suppress more warnings * More warnings * mode warnings * Suppress more warnings * More warnings
This commit is contained in:
1 parent
441dad2eea
commit
566ef01a3f
251 files changed
+834
-649
No files matched your search
@@ -863,10 +863,9 @@ int main(int argc, char* argv[]) {
|
||||
try {
|
||||
nireq = compiledModel.get_property(ov::optimal_number_of_infer_requests);
|
||||
} catch (const std::exception& ex) {
|
||||
throw ov::Exception("Every device used with the benchmark_app should support " +
|
||||
std::string(ov::optimal_number_of_infer_requests.name()) +
|
||||
" Failed to query the metric for the " + device_name +
|
||||
" with error: " + ex.what());
|
||||
OPENVINO_THROW("Every device used with the benchmark_app should support " +
|
||||
std::string(ov::optimal_number_of_infer_requests.name()) +
|
||||
" Failed to query the metric for the " + device_name + " with error: " + ex.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -964,7 +963,7 @@ int main(int argc, char* argv[]) {
|
||||
nireq);
|
||||
}
|
||||
} else {
|
||||
throw ov::Exception("Requested device doesn't support `use_device_mem` option.");
|
||||
OPENVINO_THROW("Requested device doesn't support `use_device_mem` option.");
|
||||
}
|
||||
} else {
|
||||
if (newInputType) {
|
||||
@@ -1056,7 +1055,7 @@ int main(int argc, char* argv[]) {
|
||||
// warming up - out of scope
|
||||
auto inferRequest = inferRequestsQueue.get_idle_request();
|
||||
if (!inferRequest) {
|
||||
throw ov::Exception("No idle Infer Requests!");
|
||||
OPENVINO_THROW("No idle Infer Requests!");
|
||||
}
|
||||
|
||||
if (!inferenceOnly) {
|
||||
@@ -1107,7 +1106,7 @@ int main(int argc, char* argv[]) {
|
||||
(FLAGS_api == "async" && iteration % nireq != 0)) {
|
||||
inferRequest = inferRequestsQueue.get_idle_request();
|
||||
if (!inferRequest) {
|
||||
throw ov::Exception("No idle Infer Requests!");
|
||||
OPENVINO_THROW("No idle Infer Requests!");
|
||||
}
|
||||
|
||||
if (!inferenceOnly) {
|
||||
|
||||
@@ -494,7 +494,7 @@ static inline void fill_tensor_random(ov::Tensor tensor) {
|
||||
fill_random<uint8_t, uint32_t>(tensor, 0, 1);
|
||||
break;
|
||||
default:
|
||||
throw ov::Exception("Input type is not supported for a tensor");
|
||||
OPENVINO_THROW("Input type is not supported for a tensor");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user