11 #ifdef XRTRAITS_USE_EXCEPTIONS 17 #include <openxr/openxr.h> 24 namespace exceptions {
45 const char*
what()
const noexcept
override;
58 XrResult
result()
const noexcept;
81 XrResult result_ = XR_ERROR_RUNTIME_FAILURE;
82 bool hasResult_ =
false;
149 const char* errorMessage);
185 #endif // XRTRAITS_USE_EXCEPTIONS Main namespace for these C++ OpenXR utilities.
Definition: GetChained.h:26
Definition: BaseExceptions.h:97
void throwIfNotUnqualifiedSuccess(XrResult result, const char *errorMessage)
Definition: BaseExceptions.h:163
XrResult result() const noexcept
xr_exception(std::string &&what)
const char * what() const noexcept override
Definition: BaseExceptions.h:39
bool hasResult() const noexcept
void throwIfNotSucceeded(XrResult result, const char *errorMessage)