ErrorCellExtension<T> extension
Extends ValueCell with facilities for handling exceptions thrown while computing values
- on
-
- ValueCell<
T>
- ValueCell<
Properties
-
whenReady
→ ValueCell<
T> -
Available on ValueCell<
Create a cell that evaluates to ValueCell.none() while the cell's value is uninitialized.T> , provided by the ErrorCellExtension extensionno setter
Methods
-
error<
E extends Object> ({bool all = false}) → ValueCell< E?> -
Available on ValueCell<
Create a cell which captures exceptions thrown during the computation of this cell.T> , provided by the ErrorCellExtension extension -
initialValue(
ValueCell< T> value) → ValueCell<T> -
Available on ValueCell<
Returns a cell that evaluates to the value ofT> , provided by the ErrorCellExtension extensionvalue
when the value of this is uninitialized. -
loadingValue(
ValueCell< T> value) → ValueCell<T> -
Available on ValueCell<
Returns a cell that evaluates to the value ofT> , provided by the ErrorCellExtension extensionvalue
while an async value is loading.. -
onError<
E extends Object> (ValueCell< T> other) → ValueCell<T> -
Available on ValueCell<
Create a cell which handles exceptions thrown while computing the value ofT> , provided by the ErrorCellExtension extensionthis
.