Twice module application

Report a typo

What is the class of exception that will be thrown by such code?

fun Application.someModule() {
    install(Plugin) { /* ... */ }
}

fun main() {
    embeddedServer(Netty, port = 8080) {
        someModule()
        someModule()
    }.start()
}
Enter a short text
___

Create a free account to access the full topic