Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
Errors.hpp
Go to the documentation of this file.
1 #ifndef GALAXIS_ERRORS_HPP_
2 #define GALAXIS_ERRORS_HPP_
3 
4 namespace galaxis {
5  namespace Errors {
6  class NOT_IMPLEMENTED_ERROR : public std::exception {
7  const char* what() const throw() {
8  return "This feature is not implemented";
9  }
10  };
11 
12  class UNDEFINED_ERROR : public std::exception {
13  const char* what() const throw() {
14  return "Undefined Error";
15  }
16  };
17 
18  class POINTER_ERROR : public std::exception {
19  const char* what() const throw() {
20  return "Null pointer exception";
21  }
22  };
23  } // namespace Errors
24 } // namespace galaxis
25 
26 #endif
galaxis::Errors::NOT_IMPLEMENTED_ERROR::what
const char * what() const
Definition: Errors.hpp:7
galaxis::Errors::NOT_IMPLEMENTED_ERROR
Definition: Errors.hpp:6
galaxis::Errors::POINTER_ERROR::what
const char * what() const
Definition: Errors.hpp:19
galaxis::Errors::POINTER_ERROR
Definition: Errors.hpp:18
galaxis::Errors::UNDEFINED_ERROR
Definition: Errors.hpp:12
galaxis
Definition: MapClasses.hpp:10
galaxis::Errors::UNDEFINED_ERROR::what
const char * what() const
Definition: Errors.hpp:13