WinRTError Object (JavaScript)
JavaScript - Internet Explorer 10
When a Windows Runtime call returns an HRESULT that indicates a failure, JavaScript converts it to a special Windows Runtime error. It is available only in Windows Store apps, when the Windows Runtime is available, as part of the global JavaScript namespace.
errorObj = new WinRTError();
The WinRTError object has the same properties as the Error Object (JavaScript) object.