io.javalin.plugin.PluginExceptions.kt Maven / Gradle / Ivy
package io.javalin.plugin
abstract class PluginException(pluginClass: Class>, override val message: String) :
RuntimeException("Error in ${pluginClass.canonicalName}: $message")
data class PluginAlreadyRegisteredException(val plugin: Plugin<*>) :
PluginException(plugin::class.java, "${plugin.name()} is already registered")
class PluginNotRegisteredException(pluginClass: Class>) :
PluginException(pluginClass, "${pluginClass.canonicalName} was not registered as a plugin at startup")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy