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

#include <BaseExceptions.h>

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

Public Member Functions

 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

Base class for "logic" exceptions explicitly thrown by this library's code.

Conceptually related to std::logic_error, though not deriving from it. May specify an associated/recommended XrResult code.

Note
Prefer instantiating derived classes, instead of instantiating this class directly.

Constructor & Destructor Documentation

◆ xr_logic_error() [1/3]

xrtraits::exceptions::xr_logic_error::xr_logic_error ( std::string &&  what,
XrResult  err 
)

Constructor taking a "what" string as well as an XrResult.

◆ xr_logic_error() [2/3]

xrtraits::exceptions::xr_logic_error::xr_logic_error ( std::string const &  what,
XrResult  err 
)

Constructor taking a "what" string as well as an XrResult.

◆ xr_logic_error() [3/3]

xrtraits::exceptions::xr_logic_error::xr_logic_error ( std::string &&  what)

Constructor taking a "what" string.


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