NeuroDactyl
exception.h
Go to the documentation of this file.
1 
7 #ifndef _EXCEPTION_H_
8 #define _EXCEPTION_H_
9 
10 #pragma once
11 
12 #include <exception>
13 #include <string>
14 
15 
16 namespace NeuroDactyl {
21  class Exception : public std::exception {
22  public:
23  Exception(const std::string& msg) : message(msg) {
24 
25  }
26 
30  const char* what() const noexcept
31  {
32  return message.c_str();
33  }
34 
35  private:
36  std::string message;
37  };
38 
39 }
40 
41 
42 #endif /* _EXCEPTION_H_ */
Exception class All exceptions in NeuroDactyl SDK are NeuroDactyl::Exception.
Definition: exception.h:21
const char * what() const noexcept
Definition: exception.h:30
Namespace containing all symbols from the NeuroDactyl SDK.
Definition: config.h:21