aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/isException.kt
blob: d5b584456faf13c38071d4fb3ab119aa254b3dcf (plain)
1
2
3
4
5
6
7
8
9
package org.jetbrains.dokka.base.translators

import org.jetbrains.dokka.links.DRI

internal fun DRI.isDirectlyAnException(): Boolean =
    toString().let { stringed ->
        stringed == "kotlin/Exception///PointingToDeclaration/" ||
                stringed == "java.lang/Exception///PointingToDeclaration/"
    }