Function

currentCompositionErrors

Get list of errors captured in composition.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
Deprecated currentCompositionErrors only reports errors that extend from Exception. This method is unsupported outside of Compose runtime tests. Internally, getCurrentCompositionErrors should be used instead.

currentCompositionErrors

@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.