<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


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



<h2 id="currentcompositionerrors">currentCompositionErrors</h2>

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