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

io.javalin.websocket.WsExceptionHandler Maven / Gradle / Ivy

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