Skip to content

Commit

Permalink
ev-cli: adapt to error clearing changes in everest-framework 0.20.0
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Jan 28, 2025
1 parent 165f2c8 commit 03ce17b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ev-dev-tools/src/ev_cli/templates/interface-Base.hpp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef {{ info.hpp_guard }}
#define {{ info.hpp_guard }}

{{ print_template_info('4') }}
{{ print_template_info('5') }}

#include <framework/ModuleAdapter.hpp>
#include <utils/types.hpp>
Expand Down Expand Up @@ -77,8 +77,8 @@ public:
error_manager->raise_error(error);
}

void clear_error(const Everest::error::ErrorType& type, const bool clear_all = false) {
error_manager->clear_error(type, clear_all);
void clear_error(const Everest::error::ErrorType& type) {
error_manager->clear_error(type);
}

void clear_error(const Everest::error::ErrorType& type, const Everest::error::ErrorSubType& sub_type) {
Expand All @@ -89,6 +89,10 @@ public:
error_manager->clear_all_errors();
}

void clear_all_errors_of_impl(const Everest::error::ErrorType& type) {
error_manager->clear_all_errors(type);
}

std::shared_ptr<Everest::error::ErrorStateMonitor> error_state_monitor;
std::shared_ptr<Everest::error::ErrorFactory> error_factory;

Expand Down

0 comments on commit 03ce17b

Please sign in to comment.