Package io.appmetrica.analytics.plugins
Interface IPluginReporter
public interface IPluginReporter
IPluginReporter
is an extension of IReporter
.
IPluginReporter
can be obtained via
IReporter.getPluginExtension()
method call.
For every reporter only one IPluginReporter
instance is created.
You can either query it each time you need it, or save the reference by yourself.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reportError
(PluginErrorDetails errorDetails, String message) Reports error from plugin.void
reportError
(String identifier, String message, PluginErrorDetails errorDetails) Reports error from plugin.void
reportUnhandledException
(PluginErrorDetails errorDetails) Reports unhandled exception from plugin.
-
Method Details
-
reportUnhandledException
Reports unhandled exception from plugin.- Parameters:
errorDetails
- Object describing the exception.- See Also:
-
reportError
Reports error from plugin. Use this method to report an unexpected situation. If you use this method errors will be grouped byerrorDetails
stacktrace. If you want to influence the way errors are grouped usereportError(String, String, PluginErrorDetails)
- Parameters:
errorDetails
- Object describing the error. For the error to be sent, errorDetails must contain non empty stacktrace. Otherwise it will be ignored. If you can't provide stacktrace, usereportError(String, String, PluginErrorDetails)
with filled identifier.message
- Short description or name of the error.- See Also:
-
reportError
void reportError(@NonNull String identifier, @Nullable String message, @Nullable PluginErrorDetails errorDetails) Reports error from plugin. Use this method to report an unexpected situation. This method should be used if you want to customize error grouping. If not usereportError(PluginErrorDetails, String)
- Parameters:
identifier
- An identifier used for grouping errors. Errors that have the same identifiers will belong in one group. Do not use dynamically formed strings or exception messages as identifiers to avoid having too many small crash groups.message
- Short description or name of the error.errorDetails
- Object describing the error.- See Also:
-