commonMain.com.zegreatrob.testmints.CompoundMintTestException.kt Maven / Gradle / Ivy
package com.zegreatrob.testmints
data class CompoundMintTestException(val exceptions: Map) :
Exception(
message(exceptions),
exceptions.values.first(),
)
private fun message(failure: Map) = "Multiple exceptions occurred.\n" +
failure.map { (describer, exception) ->
"$describer was: ${exception.message}\n"
}.joinToString()