Exception type for failed Windows HRESULT values.
More...
#include <HResultException.h>
Exception type for failed Windows HRESULT values.
Replaces raw throw hr; patterns so that HRESULT failures are catchable via the standard catch (const std::exception&) hierarchy.
◆ HResultException() [1/2]
| Ship::HResultException::HResultException |
( |
HRESULT |
hr | ) |
|
|
inlineexplicit |
◆ HResultException() [2/2]
| Ship::HResultException::HResultException |
( |
HRESULT |
hr, |
|
|
const std::string & |
context |
|
) |
| |
|
inline |
◆ GetHResult()
| HRESULT Ship::HResultException::GetHResult |
( |
| ) |
const |
|
inlinenoexcept |
Returns the raw HRESULT value.
The documentation for this class was generated from the following file: