#include <mv_private.h>
#include <json-glib/json-glib.h>
-
+#include <stdexcept>
/**
* @file EngineConfig.cpp
* @brief Engine Configuration class methods implementation.
/* Force load default attributes from configuration file */
int ret = loadDictionaries(config_file_path);
if (ret != MEDIA_VISION_ERROR_NONE)
- throw static_cast<int>(ret);
+ throw std::runtime_error("Failed to loadDictionaries");
}
EngineConfig::~EngineConfig()
#include <algorithm>
#include <dlog.h>
+#include <exception>
#include <memory>
#include <mutex>
machine_learning_native_add(ctx, "facenet", new FacenetAdapter());
} catch (const BaseException &e) {
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*out_handle = ctx;
#include "native_capi.h"
#include <algorithm>
+#include <exception>
#include <new>
#include <string>
#include <unistd.h>
} catch (const BaseException &e) {
LOGE("%s", e.what());
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*out_handle = ctx;
#include "native_capi.h"
#include <algorithm>
+#include <exception>
#include <iostream>
#include <mutex>
#include <new>
} catch (const BaseException &e) {
LOGE("%s", e.what());
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*handle = ctx;
#include "native_capi.h"
#include <algorithm>
+#include <exception>
#include <new>
#include <string>
#include <unistd.h>
} catch (const BaseException &e) {
LOGE("%s", e.what());
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*handle = ctx;
#include "native_capi.h"
#include <algorithm>
+#include <exception>
#include <new>
#include <string>
#include <unistd.h>
} catch (const BaseException &e) {
LOGE("%s", e.what());
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*handle = ctx;
#include "object_detection_type.h"
#include <algorithm>
+#include <exception>
#include <iostream>
#include <mutex>
#include <new>
machine_learning_native_add(ctx, TASK_NAME, new ObjectDetectionAdapter());
} catch (const BaseException &e) {
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*handle = ctx;
#include "object_detection_3d_type.h"
#include <algorithm>
+#include <exception>
#include <mutex>
#include <new>
#include <string>
} catch (const BaseException &e) {
LOGE("%s", e.what());
return e.getError();
+ } catch (const std::exception &e) {
+ LOGE("%s", e.what());
+ return MEDIA_VISION_ERROR_INTERNAL;
}
*handle = ctx;