Constructor
new UnavailabilityError(moduleName, propertyName) → {Error}
Parameters:
Name | Type | Description |
---|---|---|
moduleName |
string |
The name of the module. |
propertyName |
string |
The name of the property. |
Returns:
The error.
- Type
- Error
Example
if (!StepCounter.startStepCounterUpdate) {
throw new UnavailabilityError(NativeModuleName, eventName);
}