com.jetbrains.plugin.structure.intellij.xinclude.XIncluderException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-intellij Show documentation
Show all versions of structure-intellij Show documentation
Library for parsing JetBrains IDE plugins. Can be used to verify that plugin complies with the JetBrains Marketplace requirements.
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.plugin.structure.intellij.xinclude
class XIncluderException : RuntimeException {
constructor(path: List, message: String) : this(path, message, null)
constructor(path: List, message: String, cause: Throwable?) : super(buildMessage(message, path), cause)
override val message: String
get() = super.message!!
private companion object {
fun buildMessage(message: String, path: List): String =
message + " (at " + path.joinToString(separator = " -> ") { it.presentablePath } + ")"
}
}