create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
15 lines (13 loc) • 386 B
text/typescript
/**
* 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 {
code: string;
info?: any;
constructor(code: string, message: string) {
super(message);
this.code = code;
}
}