/*
 * Javalin - https://javalin.io
 * Copyright 2017 David Åse
 * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
 */

package io.javalin;

/**
 * A listener for use with {@link Javalin#event}.
 * Is triggered by different events in the app lifecycle.
 */
@FunctionalInterface
public interface EventListener {
    void handleEvent();
}

@@ -357,12 +357,29 @@
 eEvent()
+ throws Exception
 ;%0A%7D%0A

Allow event handlers to throw checked exceptions (#334)