Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
objtracer/Exception.h
Go to the documentation of this file.
1 #pragma once
2 
8 #include <exception>
9 #include <string>
10 
11 namespace ODemo {
12 
14 class Exception : public std::exception
15 {
16 public:
18  explicit Exception(std::string m);
19 
21  Exception(const Exception& e);
22 
24  Exception(Exception&& e) noexcept;
25 
27  const char* what() const noexcept override;
28 
30  virtual void info() const;
31 
32 private:
33  std::string m_message;
34 };
35 
36 class MotionException : public Exception
37 {
38 public:
40  explicit MotionException(std::string m);
41 
43  void info() const override;
44 };
45 
47 {
48 public:
50  explicit LoadingException(std::string m);
51 
53  void info() const override;
54 };
55 
57 {
58 public:
60  explicit SailingException(std::string m);
61 
63  void info() const override;
64 };
65 
66 } // namespace ODemo
const char * what() const noexceptoverride
Return message text.
Definition: Exception.cpp:20
void info() const override
Get info.
Definition: Exception.cpp:30
Simple Exception root class.
virtual void info() const
Get info.
Definition: Exception.cpp:26
void info() const override
Get info.
Definition: Exception.cpp:34
SailingException(std::string m)
Constructor initializes message for the exception.
Definition: Exception.cpp:36
MotionException(std::string m)
Constructor initializes message for the exception.
Definition: Exception.cpp:28
Exception(std::string m)
Constructor initializes message for the exception.
Definition: Exception.cpp:14
LoadingException(std::string m)
Constructor initializes message for the exception.
Definition: Exception.cpp:32
void info() const override
Get info.
Definition: Exception.cpp:38