create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
17 lines (15 loc) • 569 B
text/typescript
import Platform from '../Platform';
import { CodedError } from './CodedError';
/**
* A class for errors to be thrown when a property is accessed which is
* unavailable, unsupported, or not currently implemented on the running
* platform.
*/
export class UnavailabilityError extends CodedError {
constructor(moduleName: string, propertyName: string) {
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?`
);
}
}