libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Ship::HResultException Class Reference

Exception type for failed Windows HRESULT values. More...

#include <HResultException.h>

Inheritance diagram for Ship::HResultException:
[legend]
Collaboration diagram for Ship::HResultException:
[legend]

Public Member Functions

 HResultException (HRESULT hr)
 
 HResultException (HRESULT hr, const std::string &context)
 
HRESULT GetHResult () const noexcept
 Returns the raw HRESULT value.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HResultException() [1/2]

Ship::HResultException::HResultException ( HRESULT  hr)
inlineexplicit

◆ HResultException() [2/2]

Ship::HResultException::HResultException ( HRESULT  hr,
const std::string &  context 
)
inline

Member Function Documentation

◆ GetHResult()

HRESULT Ship::HResultException::GetHResult ( ) const
inlinenoexcept

Returns the raw HRESULT value.


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