| 15 | } |
| 16 | |
| 17 | intoNative() { |
| 18 | if (!this._native) { |
| 19 | const exception = NSException.exceptionWithNameReasonUserInfo(NSGenericException, this.message, null); |
| 20 | const info = {}; |
| 21 | info['ExceptionName'] = exception.name; |
| 22 | info['ExceptionReason'] = exception.reason; |
| 23 | info['ExceptionCallStackReturnAddresses'] = exception.callStackReturnAddresses; |
| 24 | info['ExceptionCallStackSymbols'] = exception.callStackSymbols; |
| 25 | info['ExceptionUserInfo'] = exception.userInfo; |
| 26 | const error = NSError.alloc().initWithDomainCodeUserInfo('NativeScript', 1000, info as any); |
| 27 | return error; |
| 28 | } |
| 29 | return this._native; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | export class FirebaseOptions implements IFirebaseOptions { |