sculpto
Public Member Functions | List of all members
scl::dx::com_exeption Class Reference

#include <throw_if_failed.h>

Inheritance diagram for scl::dx::com_exeption:

Public Member Functions

 com_exeption (HRESULT hr)
 
const char * what () const override
 

Detailed Description

Helprer class for COM exeptions.

Definition at line 17 of file throw_if_failed.h.

Constructor & Destructor Documentation

◆ com_exeption()

scl::dx::com_exeption::com_exeption ( HRESULT  hr)
inline

Default constructor by COM HRESULT.

Definition at line 25 of file throw_if_failed.h.

25:Result(hr) {}

Member Function Documentation

◆ what()

const char * scl::dx::com_exeption::what ( ) const
inlineoverride

Definition at line 27 of file throw_if_failed.h.

28 {
29 static char str[64] {};
30 sprintf_s(str, "Failure with HRESULT of %08X",
31 static_cast<unsigned int>(Result));
32 return str;
33 }

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