All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.jupyter.codegen.ThrowableRenderersProcessorImpl.kt Maven / Gradle / Ivy

There is a newer version: 0.12.0-356
Show newest version
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