XRTraits C++ OpenXR Utilities
Public Member Functions | List of all members
xrtraits::exceptions::get_from_chain_error Struct Reference

#include <TypeError.h>

Inheritance diagram for xrtraits::exceptions::get_from_chain_error:
Inheritance graph
[legend]
Collaboration diagram for xrtraits::exceptions::get_from_chain_error:
Collaboration graph
[legend]

Public Member Functions

 get_from_chain_error (std::string &&msg, XrResult result)
 
 get_from_chain_error (const char *paramName, std::nullptr_t, XrStructureType expectedType, XrResult result)
 
 get_from_chain_error (const char *paramName, XrStructureType headType, XrStructureType expectedType, XrResult result)
 
- Public Member Functions inherited from xrtraits::exceptions::type_error
 type_error (std::string &&msg, XrResult result)
 
 type_error (const char *paramName, std::nullptr_t, XrStructureType expectedType, XrResult result)
 
 type_error (const char *paramName, XrStructureType actualType, XrStructureType expectedType, XrResult result)
 
 type_error (const char *paramName, XrStructureType actualType, XrStructureType expectedType, std::ptrdiff_t index, XrResult result)
 
 type_error (const char *paramName, std::nullptr_t, XrStructureType expectedType, std::ptrdiff_t size, XrResult result)
 
- Public Member Functions inherited from xrtraits::exceptions::xr_logic_error
 xr_logic_error (std::string &&what, XrResult err)
 
 xr_logic_error (std::string const &what, XrResult err)
 
 xr_logic_error (std::string &&what)
 
- Public Member Functions inherited from xrtraits::exceptions::xr_exception
const char * what () const noexcept override
 
bool hasResult () const noexcept
 
XrResult result () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from xrtraits::exceptions::xr_exception
 xr_exception (std::string &&what)
 
 xr_exception (std::string const &what, XrResult err)
 
 xr_exception (std::string &&what, XrResult err)
 

Detailed Description

Exception thrown by xrtraits::getFromChain() and friends when input doesn't include the type required.

Constructor & Destructor Documentation

◆ get_from_chain_error() [1/3]

xrtraits::exceptions::get_from_chain_error::get_from_chain_error ( std::string &&  msg,
XrResult  result 
)

Constructor taking a message.

◆ get_from_chain_error() [2/3]

xrtraits::exceptions::get_from_chain_error::get_from_chain_error ( const char *  paramName,
std::nullptr_t  ,
XrStructureType  expectedType,
XrResult  result 
)

Constructor for getting nullptr instead of a chain containing a desired type.

◆ get_from_chain_error() [3/3]

xrtraits::exceptions::get_from_chain_error::get_from_chain_error ( const char *  paramName,
XrStructureType  headType,
XrStructureType  expectedType,
XrResult  result 
)

Constructor for not finding the desired type in a struct chain.


The documentation for this struct was generated from the following file: