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