Skip to content
Snippets Groups Projects

Update exception in components

42 files
+ 156
156
Compare changes
  • Side-by-side
  • Inline
Files
42
@@ -57,7 +57,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT ModelInterface *OpenPASS_CreateInstance
@@ -57,7 +57,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT ModelInterface *OpenPASS_CreateInstance
callbacks,
callbacks,
agent->GetAgentId()));
agent->GetAgentId()));
}
}
catch (const std::runtime_error &ex)
catch (const std::exception &ex)
{
{
if (Callbacks != nullptr)
if (Callbacks != nullptr)
{
{
@@ -91,7 +91,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT bool OpenPASS_UpdateInput(ModelInterfac
@@ -91,7 +91,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT bool OpenPASS_UpdateInput(ModelInterfac
{
{
implementation->UpdateInput(localLinkId, data, time);
implementation->UpdateInput(localLinkId, data, time);
}
}
catch (const std::runtime_error &ex)
catch (const std::exception &ex)
{
{
if (Callbacks != nullptr)
if (Callbacks != nullptr)
{
{
@@ -122,7 +122,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT bool OpenPASS_UpdateOutput(ModelInterfa
@@ -122,7 +122,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT bool OpenPASS_UpdateOutput(ModelInterfa
{
{
implementation->UpdateOutput(localLinkId, data, time);
implementation->UpdateOutput(localLinkId, data, time);
}
}
catch (const std::runtime_error &ex)
catch (const std::exception &ex)
{
{
if (Callbacks != nullptr)
if (Callbacks != nullptr)
{
{
@@ -150,7 +150,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT bool OpenPASS_Trigger(ModelInterface *i
@@ -150,7 +150,7 @@ extern "C" ALGORITHM_COMP1_SHARED_EXPORT bool OpenPASS_Trigger(ModelInterface *i
{
{
implementation->Trigger(time);
implementation->Trigger(time);
}
}
catch (const std::runtime_error &ex)
catch (const std::exception &ex)
{
{
if (Callbacks != nullptr)
if (Callbacks != nullptr)
{
{
Loading