YMMYandexMetricaPluginReporting protocol
Extension for YMMYandexMetricaReporting.
You can get an object instance by calling the YMMYandexMetricaReporting#getPluginExtension
method. One object instance is created for each reporter.
Instance methods
-reportUnhandledException:onFailure: | Sends an unhandled error. |
-reportError:message:onFailure: | Sends a custom error message. |
-reportErrorWithIdentifier:details:message:onFailure: | Sends a custom error message with the ID. |
-reportUnhandledException:onFailure: | Sends an unhandled error. |
-reportError:message:onFailure: | Sends a custom error message. |
-reportErrorWithIdentifier:details:message:onFailure: | Sends a custom error message with the ID. |
Method descriptions
reportUnhandledException:onFailure:
- (void)reportUnhandledException:(YMMPluginErrorDetails *)errorDetails
onFailure:(nullable void (^)(NSError *error))onFailure
Sends an unhandled error.
errorDetails | Instance with error description. |
onFailure | The block that is executed when an error occurs. The error is passed as a block argument. |
errorDetails | Instance with error description. |
onFailure | The block that is executed when an error occurs. The error is passed as a block argument. |
reportError:message:onFailure:
- (void)reportError:(YMMPluginErrorDetails *)errorDetails
message:(nullable NSString *)message
onFailure:(nullable void (^)(NSError *error))onFailure
Sends a custom error message. Errors are grouped by backtrace.
errorDetails | Instance with error description. |
message | Description or name of the error. |
onFailure | The block that is executed when an error occurs. The error is passed as a block argument. |
errorDetails | Instance with error description. |
message | Description or name of the error. |
onFailure | The block that is executed when an error occurs. The error is passed as a block argument. |
reportError:message:details:onFailure:
- (void)reportErrorWithIdentifier:(NSString *)identifier
message:(nullable NSString *)message
details:(nullable YMMPluginErrorDetails *)errorDetails
onFailure:(nullable void (^)(NSError *error))onFailure
Sends a custom error message with the ID. The ID is used to group errors.
identifier | ID used for grouping. |
message | Description or name of the error. |
errorDetails | Instance with error description. |
onFailure | The block that is executed when an error occurs. The error is passed as a block argument. |
identifier | ID used for grouping. |
message | Description or name of the error. |
errorDetails | Instance with error description. |
onFailure | The block that is executed when an error occurs. The error is passed as a block argument. |