summaryrefslogtreecommitdiff
path: root/src/state/active_state.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/active_state.hpp')
-rw-r--r--src/state/active_state.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/active_state.hpp b/src/state/active_state.hpp
index 766c105..a2a8653 100644
--- a/src/state/active_state.hpp
+++ b/src/state/active_state.hpp
@@ -83,6 +83,12 @@ struct ActiveState : public BasicStateT<ActiveState>
std::move(gadget));
}
+ [[noreturn]] std::unique_ptr<BasicState> handleEvent(MountEvent event)
+ {
+ LogMsg(Logger::Error, "InvalidĀ event: ", event.eventName);
+ throw sdbusplus::exception::SdBusError(EPERM, "Operation not permitted in active state");
+ }
+
template <class AnyEvent>
[[noreturn]] std::unique_ptr<BasicState> handleEvent(AnyEvent event)
{