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