Go to the documentation of this file.
3 #ifndef WINDOWS_EXCEPTION_H
4 #define WINDOWS_EXCEPTION_H
29 #define THROW_WINDOWS_EXCEPTION( what, hResult ) \
30 throw ::WindowsException( __FILE__, __LINE__, ( what ), ( hResult ) )
34 #define CHECK_HRESULT( what ) { \
35 HRESULT result = ( what ); \
36 if ( FAILED( result ) ) \
37 THROW_WINDOWS_EXCEPTION( #what, result ); \
66 WindowsException(
char const*
const file,
unsigned int const line, std::string
const&
what, HRESULT
const hResult );
72 virtual const char*
what()
const throw();
83 #endif // WINDOWS_EXCEPTION_H