org.jetbrains.kotlinx.jupyter.codegen.ThrowableRenderersProcessorImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-jupyter-kernel Show documentation
Show all versions of kotlin-jupyter-kernel Show documentation
Kotlin Jupyter kernel published as artifact
package org.jetbrains.kotlinx.jupyter.codegen
import org.jetbrains.kotlinx.jupyter.api.ThrowableRenderer
class ThrowableRenderersProcessorImpl : ThrowableRenderersProcessor {
private val renderers = mutableListOf()
override fun renderThrowable(throwable: Throwable): Any? {
return renderers.firstOrNull { it.accepts(throwable) }?.render(throwable)
}
override fun register(renderer: ThrowableRenderer) {
renderers.add(renderer)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy