getCodeFromNativeError( errString ) method

Extract an error code from a URL string.

The parameter name of the error code should be "errCode".

Syntax

<static> getCodeFromNativeError( errString ) → {String}

Parameters

Name Type Description
errString String The error string URL

Returns

error code

Type:

String

Example

TODO: CONFIRM THE RETURN DATATYPE

Source

hwc-utils.js, line 179.