Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
invalid_mission_exception.hpp
Go to the documentation of this file.
1#ifndef INVALID_MISSION_EXCEPTION_HPP
2#define INVALID_MISSION_EXCEPTION_HPP
3
4#include <exception>
5#include <string>
6
7class InvalidMissionException : public std::exception {
8 std::string message;
9
10 public:
11 explicit InvalidMissionException(const std::string& msg) : message(msg) {
12 this->message =
13 "Invalid mission. Please choose between 'inspection' and 'inspection_test_EBS'; chose '" +
14 msg + "' instead.";
15 }
16
17 const char* what() const throw() { return this->message.c_str(); }
18};
19
20#endif // INVALID_MISSION_EXCEPTION_HPP
InvalidMissionException(const std::string &msg)