android-components / mozilla.components.lib.crash / Breadcrumb

Breadcrumb

data class Breadcrumb : Comparable<Breadcrumb> (source)

Represents a single crash breadcrumb.

Types

Name Summary
Level enum class Level
Crash breadcrumb priority level.
Type enum class Type
Crash breadcrumb type.

Constructors

Name Summary
<init> Breadcrumb(message: String = "", data: Map<String, String> = emptyMap(), category: String = "", level: Level = Level.DEBUG, type: Type = Type.DEFAULT, date: Date = Date())
Represents a single crash breadcrumb.

Properties

Name Summary
category val category: String
Category of the crash breadcrumb.
data val data: Map<String, String>
Data related to the crash breadcrumb.
date val date: Date
Date of of the crash breadcrumb.
level val level: Level
Level of the crash breadcrumb.
message val message: String
Message of the crash breadcrumb.
type val type: Type
Type of the crash breadcrumb.

Functions

Name Summary
compareTo fun compareTo(other: Breadcrumb): Int

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.