MonitorError

data class MonitorError(val error: Throwable, val timestamp: Long = System.currentTimeMillis()) : SagaEvent

Emitted when a SagaMonitor throws an unexpected exception during event dispatch.

The executor catches the exception so that a misbehaving monitor does not abort saga execution. This event itself is emitted to any other monitors that are registered and do not throw.

Constructors

Link copied to clipboard
constructor(error: Throwable, timestamp: Long = System.currentTimeMillis())

Properties

Link copied to clipboard

The exception thrown by the monitor.

Link copied to clipboard
open override val timestamp: Long

Timestamp when the event occurred (milliseconds since epoch).