open fun exceptionHandler(handler: Handler<Throwable>): MqttEndpoint
Set an exception handler. This will be called when an error at protocol level happens
handler - the handler
handler
Return a reference to this, so the API can be used fluently