vertx / io.vertx.core.net / NetServer / exceptionHandler

exceptionHandler

abstract fun exceptionHandler(handler: Handler<Throwable>): NetServer

Set an exception handler called for socket errors happening before the connection is passed to the #connectHandler, e.g during the TLS handshake.

Parameters

handler - the handler to set

Return
a reference to this, so the API can be used fluently