LibraryError

data class LibraryError(val taskId: String, val at: Instant, val message: String, val cause: Throwable?, val causeMessage: String? = cause?.message, val causeType: String? = cause?.let { it::class.simpleName }) : MonitorEvent

Library-internal error that does not fit the per-attempt frame — for example BGTaskScheduler.submit rejecting a request, or a platform-level callback throwing. The library has already handled the error (logged, possibly rejected the schedule); this event surfaces what would otherwise be Kermit-only.

Constructors

Link copied to clipboard
constructor(taskId: String, at: Instant, message: String, cause: Throwable?, causeMessage: String? = cause?.message, causeType: String? = cause?.let { it::class.simpleName })

Properties

Link copied to clipboard
open override val at: Instant

Wall-clock time the event was emitted.

Link copied to clipboard

Raw cause for Kotlin consumers. Hidden from ObjC — Throwable bridges to Swift as an opaque KotlinThrowable with no structure (CLAUDE.md §8, N-009 root cause). Swift reads causeMessage / causeType instead.

Link copied to clipboard

cause's message, bridged for Swift.

Link copied to clipboard

cause's concrete class simple name (e.g. "SerializationException"), bridged for Swift.

Link copied to clipboard
Link copied to clipboard
open override val taskId: String

The task this event belongs to.