API Reference > Extension Classes > Windows Classes > ErrorCtx Class > ErrorCtx Methods > ErrorCtx::check Method
ErrorCtx::check Method
Syntax
C++
static void check(HRESULT hResult);

Throws an error if and only if hResult specifies a failure.

Calls fire(hResult) if and only if FAILED(hResult).

Copyright © 2002–2020. Open Design Alliance. All rights reserved.