Package com.yandex.metrica.plugins
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 Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description StackTraceItembuild()Creates an instance ofStackTraceItem.StackTraceItem.BuilderwithClassName(java.lang.String value)Sets class name.StackTraceItem.BuilderwithColumn(java.lang.Integer value)Sets column.StackTraceItem.BuilderwithFileName(java.lang.String value)Sets file name.StackTraceItem.BuilderwithLine(java.lang.Integer value)Sets line.StackTraceItem.BuilderwithMethodName(java.lang.String value)Sets method name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withClassName
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.Builderobject.
-
withFileName
Sets file name.- Parameters:
value- name of the file where the error occurred.- Returns:
- the same
StackTraceItem.Builderobject.
-
withLine
Sets line.- Parameters:
value- line number in which the error occurred.- Returns:
- the same
StackTraceItem.Builderobject.
-
withColumn
Sets column.- Parameters:
value- column in which the error occurred.- Returns:
- the same
StackTraceItem.Builderobject.
-
withMethodName
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.Builderobject.
-
build
Creates an instance ofStackTraceItem.- Returns:
StackTraceItemobject.
-