[admob][android] Add util to convert code + message to JS Error
This commit is contained in:
parent
1b8a2826ac
commit
d9adef31a5
|
@ -327,3 +327,9 @@ export function generatePushID(serverTimeOffset?: number = 0): string {
|
|||
|
||||
return id;
|
||||
}
|
||||
|
||||
export function nativeToJSError(code: string, message: string) {
|
||||
const error = new Error(message);
|
||||
error.code = code;
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue