From 379a2a8122849541201f4d9605511f5a03f86edc Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Tue, 7 Jul 2020 08:41:32 +0200 Subject: Change generic Error to IllegalStateException to be thrown when there are conflicting overrides --- core/src/main/kotlin/plugability/DokkaContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin/plugability') diff --git a/core/src/main/kotlin/plugability/DokkaContext.kt b/core/src/main/kotlin/plugability/DokkaContext.kt index 59090522..61ae1918 100644 --- a/core/src/main/kotlin/plugability/DokkaContext.kt +++ b/core/src/main/kotlin/plugability/DokkaContext.kt @@ -127,7 +127,7 @@ private class DokkaContextConfigurationImpl( private fun findNotOverridden(bucket: Set>): Extension<*, *, *> { val filtered = bucket.filter { it !in suppressedExtensions } - return filtered.singleOrNull() ?: throw Error("Conflicting overrides: $filtered") + return filtered.singleOrNull() ?: throw IllegalStateException("Conflicting overrides: $filtered") } private fun translateAdjacencyList( -- cgit