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
7
class
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
Definition
invalid_mission_exception.hpp:7
InvalidMissionException::what
const char * what() const
Definition
invalid_mission_exception.hpp:17
InvalidMissionException::InvalidMissionException
InvalidMissionException(const std::string &msg)
Definition
invalid_mission_exception.hpp:11
InvalidMissionException::message
std::string message
Definition
invalid_mission_exception.hpp:8
src
inspection
include
exceptions
invalid_mission_exception.hpp
Generated by
1.9.8