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

io.javalin.plugin.PluginExceptions.kt Maven / Gradle / Ivy

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