withError

open override fun withError(error: String): LambdaMetaData(source)

Returns a copy of this metadata with error replaced by the given string.

Must be implemented by every concrete data class as override fun withError(error: String) = copy(error = error). Declared abstract (no default) so that adding a new subtype without this override is a compile error rather than a runtime silent-no-op.