aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/plugability
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-07-07 08:41:32 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-07 10:07:21 +0200
commit379a2a8122849541201f4d9605511f5a03f86edc (patch)
tree2bbf1030c76d20ad0eaa310370b9dc4fd744fd9b /core/src/main/kotlin/plugability
parent0a73ca69049163d59185223f518a9fc22afccaab (diff)
downloaddokka-379a2a8122849541201f4d9605511f5a03f86edc.tar.gz
dokka-379a2a8122849541201f4d9605511f5a03f86edc.tar.bz2
dokka-379a2a8122849541201f4d9605511f5a03f86edc.zip
Change generic Error to IllegalStateException to be thrown when there are conflicting overrides
Diffstat (limited to 'core/src/main/kotlin/plugability')
-rw-r--r--core/src/main/kotlin/plugability/DokkaContext.kt2
1 files changed, 1 insertions, 1 deletions
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<*, *, *>>): 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(