@unimodules/react-native-adapter
Version:
The adapter to use universal modules with the React Native bridge
12 lines • 389 B
JavaScript
/**
* A general error class that should be used for all errors in Expo modules.
* Guarantees a `code` field that can be used to differentiate between different
* types of errors without further subclassing Error.
*/
export class CodedError extends Error {
constructor(code, message) {
super(message);
this.code = code;
}
}
//# sourceMappingURL=CodedError.js.map