com.avito.report.model.Incident.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of report-api Show documentation
Show all versions of report-api Show documentation
Collection of infrastructure libraries and gradle plugins of Avito Android project
package com.avito.report.model
public data class Incident(
val type: Type,
val timestamp: Long,
val trace: List,
val chain: List,
val entryList: List
) {
public val errorMessage: String = chain.firstOrNull()?.message ?: "Unknown"
public enum class Type {
/**
* abnormal test execution
*/
INFRASTRUCTURE_ERROR,
/**
* assertions not being fulfilled
*/
ASSERTION_FAILED
}
// for test fixtures
public companion object
}