All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy