C++ YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
state_machine_cancel_exception.hpp
Go to the documentation of this file.
1// Copyright (C) 2026 Maik Knof
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16#ifndef YASMIN__STATE_MACHINE_CANCEL_EXCEPTION_HPP_
17#define YASMIN__STATE_MACHINE_CANCEL_EXCEPTION_HPP_
18
19#include <stdexcept>
20#include <string>
21
22namespace yasmin {
23
32class StateMachineCancelException : public std::runtime_error {
33public:
38 explicit StateMachineCancelException(const std::string &state_machine_name)
39 : std::runtime_error("State machine canceled: " + state_machine_name) {}
40};
41
42} // namespace yasmin
43
44#endif // YASMIN__STATE_MACHINE_CANCEL_EXCEPTION_HPP_
StateMachineCancelException(const std::string &state_machine_name)
Construct a new cancellation exception.
Definition state_machine_cancel_exception.hpp:38
Definition blackboard.hpp:34