UNPKG

589 BJavaScriptView Raw
1import Platform from '../Platform';
2import { CodedError } from './CodedError';
3/**
4 * A class for errors to be thrown when a property is accessed which is
5 * unavailable, unsupported, or not currently implemented on the running
6 * platform.
7 */
8export class UnavailabilityError extends CodedError {
9 constructor(moduleName, propertyName) {
10 super('ERR_UNAVAILABLE', `The method or property ${moduleName}.${propertyName} is not available on ${Platform.OS}, are you sure you've linked all the native dependencies properly?`);
11 }
12}
13//# sourceMappingURL=UnavailabilityError.js.map
\No newline at end of file