cash.grammar.kotlindsl.parse.BuildScriptParseException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A library for parsing, rewriting, and linting Kotlin source code
package cash.grammar.kotlindsl.parse
public class BuildScriptParseException private constructor(msg: String) : RuntimeException(msg) {
public companion object {
public fun withErrors(messages: List): BuildScriptParseException {
var i = 1
val msg = messages.joinToString { "${i++}: $it" }
return BuildScriptParseException(msg)
}
}
}