mozaSdk
DevicesManagerException.h
1 
2 #pragma once
3 
4 #include <exception>
5 #include <string>
6 namespace RS21::direct_input{
7 
8 
9 
10 class DevicesManagerException: public std::exception
11 {
12 public:
13  DevicesManagerException(const std::string& errorMessage);
14  DevicesManagerException(const char* errorMessage);
15  virtual const char* what() const throw() override
16  {
17  return m_errorString.c_str();
18  }
19 private:
20  std::string m_errorString;
21 };
22 
23 }//namespace
24 
Definition: DevicesManagerException.h:10
DevicesManagerException(const std::string &errorMessage)
virtual const char * what() const override
Definition: DevicesManagerException.h:15
Definition: DeviceException.h:7