vertx / io.vertx.reactivex.mqtt / MqttServer / exceptionHandler

exceptionHandler

open fun exceptionHandler(handler: Handler<Throwable>): MqttServer

Set an exception handler for the server, that will be called when an error happens independantly of an accepted io.vertx.reactivex.mqtt.MqttEndpoint, like a rejected connection

Parameters

handler - the exception handler

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