diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-07-07 08:41:32 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-07 10:07:21 +0200 |
commit | 379a2a8122849541201f4d9605511f5a03f86edc (patch) | |
tree | 2bbf1030c76d20ad0eaa310370b9dc4fd744fd9b /core/src/main/kotlin/plugability | |
parent | 0a73ca69049163d59185223f518a9fc22afccaab (diff) | |
download | dokka-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.kt | 2 |
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( |