Voxel
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Classes | Macros
windows_exception.h File Reference

Contains WindowsException class. More...

#include <winerror.h>
#include <string>
#include <stdexcept>

Go to the source code of this file.

Classes

struct  WindowsException
 Windows exception class. More...

Macros

#define WINDOWS_EXCEPTION_H
#define THROW_WINDOWS_EXCEPTION(what, hResult)   throw ::WindowsException( __FILE__, __LINE__, ( what ), ( hResult ) )
 Throws a WindowsException labeled with the file, line, string what and HRESULT error code hResult.
#define CHECK_HRESULT(what)
 Evaluates what, and if it returns an HRESULT failure code, throws a WindowsException.

Detailed Description

Contains WindowsException class.

Definition in file windows_exception.h.

Macro Definition Documentation

#define CHECK_HRESULT (   what)
Value:
{ \
HRESULT result = ( what ); \
if ( FAILED( result ) ) \
THROW_WINDOWS_EXCEPTION( #what, result ); \
}

Evaluates what, and if it returns an HRESULT failure code, throws a WindowsException.

Definition at line 34 of file windows_exception.h.