Method AuException.ThrowIfHresultNegative
Overload
If errorCode is less than 0, throws AuException that includes the code and its message. More info: AuException.FormatMessage.
public static void ThrowIfHresultNegative(int errorCode, string message = null)