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

commonMain.com.zegreatrob.testmints.CompoundMintTestException.kt Maven / Gradle / Ivy

There is a newer version: 12.1.30
Show newest version
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