This function sets the callback function called when there is a native error reported. Calling this function will replace any callback that had been set previously.
<static> setReportErrorFromNativeCallback()
var errorCallback = function( errorString )
{
alert( "There was a native error: " + errorString );
}
hwc.setReportErrorFromNativeCallback( errorCallback );