reportError method

This commit is contained in:
Maria Nashchanskaia 2017-09-28 13:01:38 +02:00
parent 0d1efc03b3
commit 09d956e74f

View File

@ -22,4 +22,8 @@ RCT_EXPORT_METHOD(reportEvent:(NSString *)message parameters:(nullable NSDiction
[YMMYandexMetrica reportEvent:message parameters:params onFailure:NULL];
}
RCT_EXPORT_METHOD(reportError:(NSString *)message reason:(NSString *)reason) {
NSException *exception = [[NSException alloc] initWithName:message reason:reason userInfo:nil];
[YMMYandexMetrica reportError:message exception:exception onFailure:NULL];
}
@end