Blender  V3.3
GHOST_XrException.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include <exception>
10 #include <string>
11 
12 class GHOST_XrException : public std::exception {
13  friend class GHOST_XrContext;
14 
15  public:
16  GHOST_XrException(const char *msg, int result = 0)
17  : std::exception(), m_msg(msg), m_result(result)
18  {
19  }
20 
21  const char *what() const noexcept override
22  {
23  return m_msg.data();
24  }
25 
26  private:
27  std::string m_msg;
28  int m_result;
29 };
Main GHOST container to manage OpenXR through.
const char * what() const noexcept override
GHOST_XrException(const char *msg, int result=0)