Enclosing class:
PluginErrorDetails


public static class PluginErrorDetails.Builder
extends java.lang.Object

Constructor Summary

Constructors
Constructor and Description
Builder() 

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
PluginErrorDetailsbuild()
Creates an instance of PluginErrorDetails.
PluginErrorDetails.BuilderwithExceptionClass(java.lang.String value)
Sets exception class.
PluginErrorDetails.BuilderwithMessage(java.lang.String value)
Sets message.
PluginErrorDetails.BuilderwithPlatform(java.lang.String value)
Sets platform.
PluginErrorDetails.BuilderwithPluginEnvironment(java.util.Map<java.lang.String,java.lang.String> value)
Sets plugin environment: arbitrary map containing any additional information about the plugin.
PluginErrorDetails.BuilderwithStacktrace(java.util.List<StackTraceItem> value)
Sets stacktrace.
PluginErrorDetails.BuilderwithVirtualMachineVersion(java.lang.String value)
Sets virtual machine version.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Builder

public Builder()

Method Detail

withExceptionClass

@NonNull
public PluginErrorDetails.Builder withExceptionClass(@Nullable
                                                              java.lang.String value)
Sets exception class.
Parameters:
value - name of the class/interface/symbol (depending on the plugin you are using) of the error.
Returns:
the same PluginErrorDetails.Builder object.

withMessage

@NonNull
public PluginErrorDetails.Builder withMessage(@Nullable
                                                       java.lang.String value)
Sets message.
Parameters:
value - error message briefly describing the error.
Returns:
the same PluginErrorDetails.Builder object.

withStacktrace

@NonNull
public PluginErrorDetails.Builder withStacktrace(@Nullable
                                                          java.util.List<StackTraceItem> value)
Sets stacktrace.
Parameters:
value - error stacktrace.
Returns:
the same PluginErrorDetails.Builder object.
See Also:
StackTraceItem

withPlatform

@NonNull
public PluginErrorDetails.Builder withPlatform(@Nullable
                                                        java.lang.String value)
Sets platform. Use constants defined in PluginErrorDetails.Platform for popular plugins or a custom string for a plugin that does not have a corresponding constant.
Parameters:
value - name of the plugin in which the error occurred.
Returns:
the same PluginErrorDetails.Builder object.

withVirtualMachineVersion

@NonNull
public PluginErrorDetails.Builder withVirtualMachineVersion(@Nullable
                                                                     java.lang.String value)
Sets virtual machine version. Use this method to specify the version of plugin you are using (e. g. Unity version, Flutter version, etc.).
Parameters:
value - version.
Returns:
the same PluginErrorDetails.Builder object.

withPluginEnvironment

@NonNull
public PluginErrorDetails.Builder withPluginEnvironment(@Nullable
                                                                 java.util.Map<java.lang.String,java.lang.String> value)
Sets plugin environment: arbitrary map containing any additional information about the plugin.
This environment is not the same as YandexMetricaConfig.errorEnvironment. The latter is applied to all following errors and crashes while the former is only applied to this particular error.
Parameters:
value - plugin environment
Returns:
the same PluginErrorDetails.Builder object.

build

@NonNull
public PluginErrorDetails build()
Creates an instance of PluginErrorDetails.
Returns:
PluginErrorDetails object.