11 #ifdef XRTRAITS_USE_EXCEPTIONS 23 namespace exceptions {
30 static constexpr XrResult DEFAULT_TYPE_ERROR_CODE =
31 XR_ERROR_VALIDATION_FAILURE;
50 type_error(
const char* paramName, std::nullptr_t,
51 XrStructureType expectedType, XrResult result);
57 type_error(
const char* paramName, XrStructureType actualType,
58 XrStructureType expectedType, XrResult result);
63 type_error(
const char* paramName, XrStructureType actualType,
64 XrStructureType expectedType, std::ptrdiff_t index,
70 type_error(
const char* paramName, std::nullptr_t,
71 XrStructureType expectedType, std::ptrdiff_t size,
93 XrStructureType expectedType,
101 XrStructureType headType,
102 XrStructureType expectedType,
108 #endif // XRTRAITS_USE_EXCEPTIONS Main namespace for these C++ OpenXR utilities.
Definition: GetChained.h:26
Definition: BaseExceptions.h:163
XrResult result() const noexcept
type_error(std::string &&msg, XrResult result)
Definition: TypeError.h:81
Definition: TypeError.h:39