public static final class ErrorEvent.Builder extends Event.BaseBuilder<ErrorEvent.Builder>
booleanProperties, dateProperties, doubleProperties, duration, longProperties, stringProperties, thisObj, timestamp| Modifier and Type | Method and Description |
|---|---|
ErrorEvent |
build() |
ErrorEvent.Builder |
withErrorStackTraceIndex(int errorStackTraceIndex)
The index into the stackTracesElements array that caused the error.
|
ErrorEvent.Builder |
withMessage(java.lang.String message) |
ErrorEvent.Builder |
withSeverity(Instrumentation.Severity level) |
ErrorEvent.Builder |
withStackTraces(java.util.ArrayList<ErrorEvent.StackTrace> stackTraces)
Add an Array of Stack Trace Elements.
|
addBooleanProperty, addDateProperty, addDoubleProperty, addLongProperty, addStringProperty, clearBooleanProperties, clearDateProperties, clearDoubleProperties, clearLongProperties, clearStringProperties, removeBooleanProperty, removeDateProperty, removeDoubleProperty, removeLongProperty, removeStringProperty, withDuration, withTimestamppublic ErrorEvent.Builder withMessage(java.lang.String message)
message - Error Message.public ErrorEvent.Builder withStackTraces(java.util.ArrayList<ErrorEvent.StackTrace> stackTraces)
stackTraces - Maximum number supported is . To remove the list, pass in nullpublic ErrorEvent.Builder withErrorStackTraceIndex(int errorStackTraceIndex)
errorStackTraceIndex - Default is 0.public ErrorEvent.Builder withSeverity(Instrumentation.Severity level)
level - Level of the Error
Instrumentation.Severity.ALERT An error that didn't cause any issuesInstrumentation.Severity.CRITICAL An error that caused issuesInstrumentation.Severity.FATAL An error that killed the apppublic ErrorEvent build()