Package io.appmetrica.analytics.plugins
Class StackTraceItem.Builder
java.lang.Object
io.appmetrica.analytics.plugins.StackTraceItem.Builder
- Enclosing class:
- StackTraceItem
Builder for
StackTraceItem
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an instance ofStackTraceItem
.withClassName
(String value) Sets class name.withColumn
(Integer value) Sets column.withFileName
(String value) Sets file name.Sets line.withMethodName
(String value) Sets method name.
-
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.Builder
object.
-
withFileName
Sets file name.- Parameters:
value
- name of the file where the error occurred.- Returns:
- the same
StackTraceItem.Builder
object.
-
withLine
Sets line.- Parameters:
value
- line number in which the error occurred.- Returns:
- the same
StackTraceItem.Builder
object.
-
withColumn
Sets column.- Parameters:
value
- column in which the error occurred.- Returns:
- the same
StackTraceItem.Builder
object.
-
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.Builder
object.
-
build
Creates an instance ofStackTraceItem
.- Returns:
StackTraceItem
object.
-