fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 369 forks source link

on connect exception preserve the connack failure in the exception #42

Closed stevenbenjamin closed 9 years ago

stevenbenjamin commented 9 years ago

I find it awkward to pull out the cause of a disconnect on e.g. password failure. I've added a subclass of IOException that preserves the CONNACK code that caused the exception. Since an IOException is still thrown no changes are required in the callers.

fusesource-ci commented 9 years ago

Can one of the admins verify this patch?

chirino commented 9 years ago

ok to test