Interface FailureEvent

All Superinterfaces:
JobEvent, LifecycleEvent, TerminalEvent
All Known Implementing Classes:
DependencyFailureEvent, JobFailedEvent, JobTimedOut

public sealed interface FailureEvent extends TerminalEvent permits JobFailedEvent, JobTimedOut, DependencyFailureEvent
Sealed marker for job failures: exceptions, timeouts, and dependency failures.

JobCancelled is intentionally excluded - cancellation is an explicit decision to stop, not a failure to complete.

Since:
0.1 (2025-09-15)
Author:
Andrey Santrosyan
  • Method Details

    • getError

      Throwable getError()
      Gets the error that caused the failure.
      Returns:
      the error, may be null