Show / Hide Table of Contents

Method AuException.ThrowIfHresultNot0


Overload

If errorCode is not 0, throws AuException that includes the code and its message. More info: AuException.FormatMessage.

public static void ThrowIfHresultNot0(int errorCode, string message = null)
Parameters
errorCode  (int)

Windows API error code or HRESULT.

message  (string)

Main message. The message of the error code will be appended to it.