AnalysisResult

data class AnalysisResult(val message: String, val explanation: String, val retrySignal: RetrySignal, val confidence: Int, val throwableMaker: (message: String) -> Throwable)(source)

A returned analysis result in a ShellSentryExtension.

Constructors

Link copied to clipboard
constructor(message: String, explanation: String, retrySignal: RetrySignal, confidence: Int, throwableMaker: (message: String) -> Throwable)

Properties

Link copied to clipboard

A confidence level, on a scale of 0-100. This is useful for dynamic analysis that made be subject to confidence levels, such as an AI analyzer.

Link copied to clipboard

A detailed, multi-line message explaining the error and suggesting a solution.

Link copied to clipboard

A broad single-line description of the error without specifying exact details, suitable for crash reporter grouping.

Link copied to clipboard

A RetrySignal indicating if this can be retried.

Link copied to clipboard
val throwableMaker: (message: String) -> Throwable

A function that takes the message and returns a Throwable for reporting to Bugsnag. Consider subclassing NoStacktraceThrowable if needed.