Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Exception.cpp
Go to the documentation of this file.
1 
7 #include "objtracer/Exception.h"
8 #include "tracer/tracer.h"
9 
10 namespace ODemo {
11 
12 using namespace std;
13 
14 Exception::Exception(std::string m) : m_message(std::move(m)) { COMP_MISC_MEMBER_TRACER; }
15 
16 Exception::Exception(const Exception& e) : m_message(e.m_message) { COMP_MISC_MEMBER_TRACER; }
17 
18 Exception::Exception(Exception&& e) noexcept : m_message(std::move(e.m_message)) { COMP_MISC_MEMBER_TRACER; }
19 
20 const char* Exception::what() const noexcept
21 {
23  return m_message.c_str();
24 }
25 
27 
29 
31 
33 
35 
37 
39 
40 } // namespace ODemo
const char * what() const noexceptoverride
Return message text.
Definition: Exception.cpp:20
Comprehensive include file for all tracer classes.
void info() const override
Get info.
Definition: Exception.cpp:30
Simple Exception root class.
Header for the Exception 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
#define COMP_MISC_MEMBER_TRACER
Macro for tracking member scope.
Definition: MemberTracer.h:21
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