ezEngine  Release 25.03
ezArgErrorCode Struct Reference

Converts a windows HRESULT into an error code and a human-readable error message. Pass in GetLastError() function or an HRESULT from another error source. Be careful when printing multiple values, a function could clear GetLastError as a side-effect so it is best to store it in a temp variable before printing a complex error message. More...

#include <FormatString_Platform.h>

Public Member Functions

 ezArgErrorCode (ezUInt32 uiErrorCode)
 

Public Attributes

ezUInt32 m_ErrorCode
 

Detailed Description

Converts a windows HRESULT into an error code and a human-readable error message. Pass in GetLastError() function or an HRESULT from another error source. Be careful when printing multiple values, a function could clear GetLastError as a side-effect so it is best to store it in a temp variable before printing a complex error message.

See also
https://learn.microsoft.com/en-gb/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror

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