
io.javalin.core.plugin.PluginExceptions.kt Maven / Gradle / Ivy
package io.javalin.core.plugin
data class PluginAlreadyRegisteredException(val pluginClass: Class) :
RuntimeException("${pluginClass.canonicalName} is already registered")
data class PluginNotFoundException(val pluginClass: Class) :
RuntimeException("The plugin ${pluginClass.canonicalName} was not found")
abstract class PluginLifecycleViolationException(pluginClass: Class, override val message: String) :
RuntimeException("Error in ${pluginClass.canonicalName}: $message")
data class PluginInitLifecycleViolationException(val pluginClass: Class) :
PluginLifecycleViolationException(pluginClass, "It is not allowed to register handlers during the 'Init' lifecycle. Please use the 'Apply' lifecycle instead.")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy