io.javalin.websocket.WsExceptionHandler Maven / Gradle / Ivy
/*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.websocket;
import org.jetbrains.annotations.NotNull;
/**
* A handler for use with {@link io.javalin.Javalin#wsException(Class, WsExceptionHandler)}.
* Is triggered when an exception is thrown by a handler in a {@link WsConfig}.
*
* @see WsContext
*/
@FunctionalInterface
public interface WsExceptionHandler {
void handle(@NotNull T exception, @NotNull WsContext ctx);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy