Failed

data class Failed(val error: FeedbackError) : UploadState

Phase 34 Plan 04 (AND-ERR-02). Terminal failure state carrying a typed FeedbackError.

Prior (Phase 32) shape used val reason: String. The primary carrier is now the typed error; the legacy string-reason constructor is preserved via a @Deprecated(level = HIDDEN) secondary constructor so pre-compiled call sites keep linking, and reason is retained as a deprecated read-only bridge.

Note: because Failed was previously a data class, component1() and copy() signatures change with the primary carrier. Hosts relying on destructuring val (reason) = failed must migrate to failed.error (or failed.error.message for the raw string). This is documented in the plan summary (34-04) as an intentional additive-with-bridge break, matching the plan's "option (b)" for cases where true binary compat is infeasible.

Constructors

Link copied to clipboard
constructor(error: FeedbackError)

Properties

Link copied to clipboard
Link copied to clipboard