Function

currentCompositionErrors

Get list of errors captured in composition.

currentCompositionErrors

Deprecated

currentCompositionErrors only reports errors that extend from Exception. This method is unsupported outside of Compose runtime tests. Internally, getCurrentCompositionErrors should be used instead.

Source set: Common
@TestOnly
public fun currentCompositionErrors(): List<Pair<Exception, Boolean>>

Get list of errors captured in composition. This list is only available when recomposer is in hot reload mode. Test-only API, not for use in production.

Returns

pair of error and whether the error is recoverable.

Last updated: