Why an instance of class MqttClient must be enclosed by try/catch?

The instance doesn’t need to be surrounded by try/catch, but the constructor invocation does, or else needs to be within a method that is declared to throw that exception.

Leave a Comment