Class StackTraceItem.Builder

java.lang.Object
com.yandex.metrica.plugins.StackTraceItem.Builder
Enclosing class:
StackTraceItem

public static class StackTraceItem.Builder
extends java.lang.Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withClassName

      @NonNull public StackTraceItem.Builder withClassName​(@Nullable java.lang.String value)
      Sets class name.
      Parameters:
      value - name of the class/interface/symbol (depending on the plugin you are using) where the error occurred.
      Returns:
      the same StackTraceItem.Builder object.
    • withFileName

      @NonNull public StackTraceItem.Builder withFileName​(@Nullable java.lang.String value)
      Sets file name.
      Parameters:
      value - name of the file where the error occurred.
      Returns:
      the same StackTraceItem.Builder object.
    • withLine

      @NonNull public StackTraceItem.Builder withLine​(@Nullable java.lang.Integer value)
      Sets line.
      Parameters:
      value - line number in which the error occurred.
      Returns:
      the same StackTraceItem.Builder object.
    • withColumn

      @NonNull public StackTraceItem.Builder withColumn​(@Nullable java.lang.Integer value)
      Sets column.
      Parameters:
      value - column in which the error occurred.
      Returns:
      the same StackTraceItem.Builder object.
    • withMethodName

      @NonNull public StackTraceItem.Builder withMethodName​(@Nullable java.lang.String value)
      Sets method name.
      Parameters:
      value - name of the method/function (depending on the plugin you are using) where the error occurred.
      Returns:
      the same StackTraceItem.Builder object.
    • build

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